UNPKG

database-builder

Version:

Library to assist in creating and maintaining SQL commands.

13 lines (12 loc) 561 B
import { DatabaseConfig } from "./database-config"; export interface SQLiteInterface { create(config: DatabaseConfig): Promise<SQLiteObjectInterface>; } export interface SQLiteObjectInterface { transaction(fn: (tx: DbTransactionInterface) => void): Promise<any>; executeSql(statement: string, params?: any[]): Promise<any>; sqlBatch(sqlStatements: Array<(string | string[] | any)>): Promise<any>; } export interface DbTransactionInterface { executeSql: (sql: any, values?: any[], success?: Function, error?: Function) => void; }