ngx-indexed-database
Version:
<div align="center"> <img src="https://w3c.github.io/IndexedDB/logo-db.svg" width="120"/> </div> <h1 align="center">ngx-indexed-database</h1>
24 lines (23 loc) • 1.25 kB
TypeScript
import { StoresResetOptions } from "../types/stores-reset-options.type";
import * as i0 from "@angular/core";
export declare class NgxIndexedDatabaseStoreOperationsService {
constructor();
upsert<T>(dbName: string, storeName: string, data: T): Promise<T>;
delete(dbName: string, storeName: string, value: any): Promise<{
success: boolean;
}>;
deleteBy(dbName: string, storeName: string, key: string, value: any): Promise<{
success: boolean;
}>;
clear(dbName: string, storeName: string): Promise<{
success: boolean;
}>;
find<T>(dbName: string, storeName: string, value: any): Promise<T | null>;
findBy<T>(dbName: string, storeName: string, key: string, value: any): Promise<T | null>;
findMany<T>(dbName: string, storeName: string, values: any[]): Promise<T[]>;
findManyBy<T>(dbName: string, storeName: string, key: string, values: any[]): Promise<T[]>;
fetchAll<T>(dbName: string, storeName: string): Promise<T[]>;
resetStores(dbName: string, options?: StoresResetOptions): Promise<any>;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxIndexedDatabaseStoreOperationsService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgxIndexedDatabaseStoreOperationsService>;
}