IDriver.d.ts
435 Bytes
export interface IDriver {
prepare(table: string): Promise<void>;
getAllRows(table: string): Promise<{
id: string;
value: any;
}[]>;
getRowByKey<T>(table: string, key: string): Promise<T | null>;
setRowByKey<T>(table: string, key: string, value: any, update: boolean): Promise<T>;
deleteAllRows(table: string): Promise<number>;
deleteRowByKey(table: string, key: string): Promise<number>;
}