Class DBIterator<K, V>

Type Parameters

Hierarchy

  • CreateDestroy
    • DBIterator

Constructors

Properties

[initLock]: RWLockWriter
_db: DB
_iterator: RocksDBIterator<Buffer, Buffer>
_options: Merge<DBIteratorOptions<any>, {
    gt?: Buffer;
    gte?: Buffer;
    keyEncoding: "buffer";
    lt?: Buffer;
    lte?: Buffer;
    valueEncoding: "buffer";
}>

Type declaration

  • Optional gt?: Buffer
  • Optional gte?: Buffer
  • keyEncoding: "buffer"
  • Optional lt?: Buffer
  • Optional lte?: Buffer
  • valueEncoding: "buffer"
_transaction?: DBTransaction
cache: [Buffer, Buffer][] = []
cachePos: number = 0
finished: boolean = false
first: boolean = true
levelPath: readonly (string | Buffer)[]
lock: Lock = ...
logger: Logger

Accessors

  • get [destroyed](): boolean
  • Returns boolean

  • get [eventHandled](): WeakSet<Event>
  • Returns WeakSet<Event>

  • get [eventHandlers](): WeakMap<EventListenerOrEventListenerObject, EventListener>
  • Returns WeakMap<EventListenerOrEventListenerObject, EventListener>

  • get [eventTarget](): EventTarget
  • Returns EventTarget

  • get [status](): Status
  • Returns Status

Methods

  • Returns AsyncGenerator<[K, V], void, void>

  • Returns Promise<undefined | [K, V]>

  • Parameters

    • type: string
    • callback: null | EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Returns Promise<void>

  • Parameters

    • event: Event

    Returns boolean

  • Returns Promise<undefined | [K, V]>

  • Parameters

    • entry: [Buffer, Buffer]

    Returns Promise<[K, V]>

  • Parameters

    • type: string
    • callback: null | EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • keyPath: string | Buffer | readonly (string | Buffer)[]

    Returns void

Generated using TypeDoc