Interface SimpleSyncStore

An interface for simple synchronous stores that don't have special support for transactions and such.

interface SimpleSyncStore {
    name: string;
    clear(): void | Promise<void>;
    clearSync(): void;
    delete(id: bigint): void;
    get(id: bigint): undefined | Uint8Array;
    keys(): Iterable<bigint>;
    set(id: bigint, data: Uint8Array): void;
    sync(): Promise<void>;
    transaction(): Transaction<Store>;
}

Hierarchy (view full)

Implemented by

Properties

name: string

The name of the store.

Methods