-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathd.ts
66 lines (66 loc) · 1.86 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
* SQLite3 Driver Config
*/
export interface SQLite3DriverConfig {
/**
* The filename of the SQLite3 DB. Use ':memory:' for an in-memory DB.
*/
filename: string;
/**
* If the file does not exist, an Error will be thrown instead of creating a
* new file.
*
* This option is ignored for in-memory, temporary, or readonly database
* connections.
*/
fileMustExist: boolean;
/**
* The SQLite3 table name prefix.
*/
prefix: string;
/**
* The timeout to use for waiting for the DB to become available.
*/
timeout: number;
/**
* Open explicitly for writing.
*
* By default, the driver will always open the DB as readonly, and attempt to
* open another link to perform write operations. If you know that only one
* instance will be writing, you can force the driver to open for writing by
* default, which will block any other instance from opening it for writing.
*
* One thing to note is that starting a transaction is a write operation, so
* as long as an instance is in a transaction, no other instances can write.
*
* PubSub also needs to open the DB, and it only needs read access.
*/
explicitWrite: boolean;
/**
* Turn on WAL mode.
*
* This will generally increase performance, but does mean that the DB must be
* on a local disk.
*
* See: https://www.sqlite.org/wal.html
*/
wal: boolean;
/**
* Additional pragma statements to run upon connection.
*
* The default pragmas:
*
* - journal_mode = WAL;
* (if wal is set to true)
* - encoding = "UTF-8";
* - foreign_keys = 1;
* - case_sensitive_like = 1;
*
* (Don't include the PRAGMA keyword, but do include the semicolon.)
*/
pragmas: string[];
/**
* Function that gets called with every SQL string executed.
*/
verbose: ((message?: any, ...additionalArgs: any[]) => void) | undefined;
}