Skip to content

createIterator

const createIterator: (transactionId, startKey?, endKey?, reverse?) => number

Defined in: .work/repos/olmdb/src/lowlevel.ts:130

Creates an iterator for scanning a range of keys within a transaction.

number

The ID of the transaction

ArrayBufferLike

Optional key to start iteration from (inclusive)

ArrayBufferLike

Optional key to end iteration at (exclusive)

boolean

If true, keys are returned in descending order

number

An iterator ID to be used with readIterator() and closeIterator()

DatabaseError if the operation fails