We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7ae7b commit d753e88Copy full SHA for d753e88
typings/index.d.ts
@@ -3,13 +3,16 @@ import { AST } from 'node-sql-parser';
3
declare module '@devsnowflake/jsql' {
4
export interface Handlers {
5
create: (q: AST, db: Database) => void;
6
- select: (q: AST, db: Database) => any[];
+ select: (q: AST, db: Database) => SelectOperation[] & ParseFunction;
7
insert: (q: AST, db: Database) => void;
8
drop: (q: AST, db: Database) => boolean;
9
update: (q: AST, db: Database) => void;
10
delete: (q: AST, db: Database) => void;
11
}
12
13
+ export type SelectOperation = any[];
14
+ export type ParseFunction = () => any[];
15
+
16
export interface DatabasePrepare {
17
ast: AST | AST[];
18
run: () => any;
0 commit comments