prorm API Reference
    Preparing search index...

    Class LmdbStore

    LmdbStore wraps an lmdb database and exposes its embedded KV surface: put/get/del for single keys, batch for multi-key writes, and list for ordered key range scans (optionally by prefix).

    Implements

    Index
    name: "lmdb" = 'lmdb'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "lmdb" = 'lmdb'

    The client library being used

    • Writes (or overwrites) the value at key.

      Parameters

      • key: string
      • value: unknown

      Returns Promise<void>

    • Reads the value at key (LMDB reads are synchronous; the result is returned directly).

      Parameters

      • key: string

      Returns Promise<unknown>

    • Deletes the value at key (LMDB remove).

      Parameters

      • key: string

      Returns Promise<void>

    • Applies a list of put/del operations. LMDB coalesces concurrent writes into one transaction.

      Parameters

      • ops: LmdbBatchOp[]

      Returns Promise<void>

    • Lists keys in order via getRange. With prefix, restricts to keys >= prefix and < prefix + '\xff' (a standard prefix-scan range).

      Parameters

      • Optionalprefix: string

      Returns Promise<string[]>