forked from bolav/fuse-sqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
44 lines (37 loc) · 1.02 KB
/
index.d.ts
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
35
36
37
38
39
40
41
42
43
44
/**
* Module to use SQLite in Fuse.
*/
declare module "SQLite" {
interface SQLiteStatement {
/**
* Executes a query. Does not return anything.
*/
execute(...args: string[]): any;
}
interface SQLiteDb {
/**
* Executes a query. Does not return anything.
*/
execute(sql_statement: string, ...args: string[]): any;
/**
* Executes a query. Returns an array of hashes with the result.
*/
query(sql_statement: string, ...args: string[]): any;
/**
* Prepares a query. Returns a prepared statement.
*/
prepare(sql_statement: string): SQLiteStatement;
/**
* Closes the database.
*/
close(): void;
}
/**
* Opens a file that contains a SQLite database
*/
function open(value: string): SQLiteDb;
/**
* Opens a file that contains a SQLite database, possibly from the bundle
*/
function openFromBundle(value: string): SQLiteDb;
}