Interface IIndexedDb

interface IIndexedDb {
    Connected: boolean;
    Name: string;
    Version: number;
    Connect(): Promise<Result<null | IDBDatabase>>;
    Delete(deletions): Promise<Result<null>>;
    Disconnect(): void;
    Get<T>(storeName, query): Promise<Result<null | T>>;
    Get<T>(storeName, query): Promise<Result<null | T>>;
    Get<T>(storeName, query): Promise<Result<T[]>>;
    GetAll<T>(storeName): Promise<Result<T[]>>;
    Insert(insertions): Promise<Result<null>>;
    Update(updates): Promise<Result<null>>;
}

Implemented by

Properties

Connected: boolean
Name: string

Name of the database to connect to.

Version: number

Version of the database to run. Migrations up to and including this version will be executed on connection.

Methods

Generated using TypeDoc