sqlStore: (
options: any,
) => {
close: () => any;
count: (table: any) => Promise<number>;
countBy: (table: any, col: any) => Promise<{}>;
name: any;
riskCounts: () => Promise<{}>;
rows: (table: any, filter: any) => Promise<any>;
schemaVersion: () => Promise<number>;
transaction: (fn: any) => Promise<any>;
} = sqlStore
Type Declaration
-
- (
options: any,
): {
close: () => any;
count: (table: any) => Promise<number>;
countBy: (table: any, col: any) => Promise<{}>;
name: any;
riskCounts: () => Promise<{}>;
rows: (table: any, filter: any) => Promise<any>;
schemaVersion: () => Promise<number>;
transaction: (fn: any) => Promise<any>;
}
-
Returns {
close: () => any;
count: (table: any) => Promise<number>;
countBy: (table: any, col: any) => Promise<{}>;
name: any;
riskCounts: () => Promise<{}>;
rows: (table: any, filter: any) => Promise<any>;
schemaVersion: () => Promise<number>;
transaction: (fn: any) => Promise<any>;
}
the store
Builds the store of one database over
pg.