export type QueryParams = Record; export interface IDatabase { exec(sql: string): Promise; run(sql: string, params: QueryParams): Promise; get(sql: string, params?: QueryParams): Promise; close(): Promise; }