跳到主要内容

KeyringStorageBinding

Defined in: packages/rxdb-adapter-encrypted/src/keyring-storage.ts:25

Implemented by each adapter (sqlite-core, pglite, …) to read / write the keyring singleton row.

Methods

readSingleton()

readSingleton(): Promise<KeyringRow | null>;

Defined in: packages/rxdb-adapter-encrypted/src/keyring-storage.ts:27

Returns the singleton row or null if the keyring table is empty.

Returns

Promise<KeyringRow | null>


writeSingleton()

writeSingleton(row): Promise<void>;

Defined in: packages/rxdb-adapter-encrypted/src/keyring-storage.ts:35

Insert the singleton row. Implementations MUST fail with a EncryptedConfigurationError(code: 'keyring_singleton_conflict') if a row already exists (use INSERT OR FAIL / INSERT … ON CONFLICT DO NOTHING

  • verification).

Parameters

ParameterType
rowKeyringRow

Returns

Promise<void>