Example #1
0
    def __init__(self, database, options):
        ''' Initialize a new instance of the DatabaseIterator.

        :param options: The read options to operate with.
        :param database: The databaes to build an iterator on.
        '''
        self.iterator = LDB.leveldb_create_iterator(database, options)
        if LDB and options: LDB.leveldb_readoptions_destroy(options)