complex_model/GulcalcToBin.py
def cursor_iterator(cursor, batchsize=100000):
    """An iterator that uses fetchmany to keep memory usage down

    :param cursor: a sqlite db cursor
    :param batchsize: size of the batch to be fetched
    :return: a generator constructed from fetchmany
    """
    while True:
        results = cursor.fetchmany(batchsize)
        if not results:
            break
        for result in results:
            yield result
An iterator that uses fetchmany to keep memory usage down

    :param cursor: a sqlite db cursor
    :param batchsize: size of the batch to be fetched
    :return: a generator constructed from fetchmany
    
An iterator that uses fetchmany to keep memory usage down
An iterator that uses fetchmany to keep memory usage down
def cursor_iterator(cursor, batchsize=100000):
    while True:
        results = cursor.fetchmany(batchsize)
        if not results:
            break
        for result in results:
            yield result
def cursor_iterator ( cursor , batchsize = 100000 ) : while True : results = cursor . fetchmany ( batchsize ) if not results : break for result in results : yield result
An iterator that uses fetchmany to keep memory usage down
An iterator that uses fetchmany to keep memory usage down
"""An iterator that uses fetchmany to keep memory usage down

    :param cursor: a sqlite db cursor
    :param batchsize: size of the batch to be fetched
    :return: a generator constructed from fetchmany
    """
a generator constructed from fetchmany
a generator constructed from fetchmany
cursor
a sqlite db cursor
a sqlite db cursor
batchsize
size of the batch to be fetched
size of the batch to be fetched