getBuffer
getBuffer(
key):Readonly<ArrayBuffer>
Defined in: .work/repos/olmdb/src/olmdb.ts:176
Retrieves a value from the database by key within the current transaction.
Parameters
Section titled “Parameters”The key to look up as a Uint8Array, ArrayBuffer, or string.
Returns
Section titled “Returns”Readonly<ArrayBuffer>
The value associated with the key as an ArrayBuffer, or undefined if not found.
Throws
Section titled “Throws”If called outside of a transaction context.
Throws
Section titled “Throws”With code “INVALID_TRANSACTION” if transaction is invalid or already closed.
Throws
Section titled “Throws”With code “KEY_TOO_LONG” if key exceeds maximum allowed length.
Throws
Section titled “Throws”With code “LMDB-{code}” for LMDB-specific errors.