forked from executeautomation/mcp-database-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.d.ts
More file actions
34 lines (26 loc) · 1.13 KB
/
global.d.ts
File metadata and controls
34 lines (26 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
declare module 'sqlite3' {
export interface RunResult {
lastID: number;
changes: number;
}
export interface Database {
all(sql: string, params: any[], callback: (err: Error | null, rows: any[]) => void): void;
all(sql: string, callback: (err: Error | null, rows: any[]) => void): void;
get(sql: string, params: any[], callback: (err: Error | null, row: any) => void): void;
get(sql: string, callback: (err: Error | null, row: any) => void): void;
run(sql: string, params: any[], callback?: (err: Error | null) => void): this;
run(sql: string, callback?: (err: Error | null) => void): this;
exec(sql: string, callback?: (err: Error | null) => void): this;
close(callback?: (err: Error | null) => void): void;
}
export class Statement {
bind(params: any[]): this;
reset(): this;
finalize(callback?: (err: Error | null) => void): void;
}
export function verbose(): any;
export class Database {
constructor(filename: string, mode?: number, callback?: (err: Error | null) => void);
constructor(filename: string, callback?: (err: Error | null) => void);
}
}