UNPKG

@bitblit/ratchet-aws

Version:

Common tools for use with AWS browser and node

16 lines (15 loc) 666 B
import { PrototypeDaoProvider } from './prototype-dao-provider.js'; import { PrototypeDaoConfig } from './prototype-dao-config.js'; export declare class PrototypeDao<T> { private provider; private cfg; static defaultDaoConfig(): PrototypeDaoConfig; constructor(provider: PrototypeDaoProvider<T>, cfg?: PrototypeDaoConfig); fetchAll(): Promise<T[]>; resetDatabase(): Promise<void>; removeItems(guids: string[]): Promise<T[]>; store(value: T): Promise<T>; fetchById(guid: string): Promise<T>; searchByField<R>(fieldDotPath: string, fieldValue: R): Promise<T[]>; searchByFieldMap(input: Record<string, any>): Promise<T[]>; }