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: number): void;
    get(id: number): undefined | Uint8Array<ArrayBufferLike>;
    keys(): Iterable<number, any, any>;
    set(
        id: number,
        data: Uint8Array<ArrayBufferLike>,
        isMetadata?: boolean,
    ): void;
    sync(): Promise<void>;
    transaction(): Transaction<Store>;
}

Hierarchy (View Summary)

Implemented by

Properties

name: string

The name of the store.

Methods

  • Parameters

    • id: number

    Returns undefined | Uint8Array<ArrayBufferLike>

  • Parameters

    • id: number
    • data: Uint8Array<ArrayBufferLike>
    • OptionalisMetadata: boolean

    Returns void