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(ino): void;
    get(ino): undefined | Uint8Array;
    set(ino, data): void;
    sync(): Promise<void>;
    transaction(): Transaction<Store>;
}

Hierarchy (view full)

Implemented by

Properties

name: string

The name of the store.

Methods