Skip to content

put

put(key, val): void

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

Stores a key-value pair in the database within the current transaction.

Data

The key to store as a Uint8Array, ArrayBuffer, or string.

Data

The value to associate with the key as a Uint8Array, ArrayBuffer, or string.

void

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.