Skip to content

get

get(key): Readonly<Uint8Array<ArrayBufferLike>>

Defined in: .work/repos/olmdb/src/olmdb.ts:161

Retrieves a value from the database by key within the current transaction.

Data

The key to look up as a Uint8Array, ArrayBuffer, or string.

Readonly<Uint8Array<ArrayBufferLike>>

The value associated with the key as a Uint8Array, or undefined if not found.

If called outside of a transaction context.

With code “INVALID_TRANSACTION” if transaction is invalid or already closed.

With code “KEY_TOO_LONG” if key exceeds maximum allowed length.

With code “LMDB-{code}” for LMDB-specific errors.