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"[];
    label?: string;
    name: string;
    type?: number;
    uuid?: `${string}-${string}-${string}-${string}-${string}`;
    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, Expand)

Implemented by

Properties

flags?: readonly "partial"[]

Use for optimizations

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

type?: number

FileSystem#id

uuid?: `${string}-${string}-${string}-${string}-${string}`

A UUID for this instance of the store.

Methods

  • Parameters

    • id: number

    Returns undefined | Uint8Array<ArrayBufferLike>

  • Parameters

    • id: number

    Returns Promise<undefined | Uint8Array<ArrayBufferLike>>

MMNEPVFCICPMFPCPTTAAATR