Interface SyncMapStore

An interface for simple synchronous stores that don't have special support for transactions and such, based on Map

interface SyncMapStore {
    flags?: readonly "partial"[];
    id?: number;
    label?: string;
    name: string;
    clear(): void | Promise<void>;
    clearSync(): void;
    delete(id: number): void;
    get(id: number): undefined | Uint8Array<ArrayBufferLike>;
    getAsync(id: number): Promise<undefined | Uint8Array<ArrayBufferLike>>;
    keys(): Iterable<number>;
    set(id: number, data: Uint8Array): void;
    sync(): Promise<void>;
    transaction(): Transaction;
    usage(): UsageInfo;
}

Hierarchy (View Summary)

Implemented by

Properties

flags?: readonly "partial"[]

Use for optimizations

id?: number

FileSystem#id

label?: string

A name for this instance of the store. For example, you might use a share name for a network-based store

name: string

What the file system using this store should be called. For example, tmpfs for an in memory store

Methods

  • Parameters

    • id: number

    Returns undefined | Uint8Array<ArrayBufferLike>

  • Parameters

    • id: number

    Returns Promise<undefined | Uint8Array<ArrayBufferLike>>