// just for develop export default { get, } function get(dbName: string): DB {return null} interface DB { make(descFileOrContent: string): Array query(sql: string, ...args:any): QueryResult query1(sql: string, ...args:any): QueryResult1 query11(sql: string, ...args:any): QueryResult11 exec(sql: string, ...args:any): ExecResult insert(table: string, data:Object): ExecResult replace(table: string, data:Object): ExecResult update(table: string, data:Object, where: string, ...args:any): ExecResult delete(table: string, where: string, ...args:any): ExecResult destroy(): void begin(): Tx } interface Tx { query(sql: string, ...args:any): QueryResult query1(sql: string, ...args:any): QueryResult1 query11(sql: string, ...args:any): QueryResult11 exec(sql: string, ...args:any): ExecResult insert(table: string, data:Object): ExecResult replace(table: string, data:Object): ExecResult update(table: string, data:Object, where: string, ...args:any): ExecResult delete(table: string, where: string, ...args:any): ExecResult end(ok:boolean): void } interface QueryResult { sql: string args: Array result: Array } interface QueryResult1 { sql: string args: Array result: Object } interface QueryResult11 { sql: string args: Array result: any } interface ExecResult { sql: string args: Array id: number changes: number }