-
Notifications
You must be signed in to change notification settings - Fork 0
/
d.ts
66 lines (65 loc) · 1.55 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
import type { PoolOptions } from 'mysql2';
/**
* MySQL Driver Config
*/
export interface MySQLDriverConfig {
/**
* The host on which to connect to MySQL. Can include a port, like
* hostname:port.
*/
host: string;
/**
* The port on which to connect to MySQL.
*/
port: number;
/**
* The MySQL user.
*/
user: string;
/**
* The MySQL password.
*/
password: string;
/**
* The MySQL database.
*/
database: string;
/**
* If you need to use custom options, like SSL, you can provide them here in
* place of the above options.
*/
customPoolConfig: PoolOptions | null;
/**
* The MySQL table name prefix.
*/
prefix: string;
/**
* The MySQL table engine.
*
* You should use MYISAM if you are using MySQL < 5.6.
*
* Options are: Any MySQL storage engine supported on your server.
*/
engine: string;
/**
* Whether to use transactions. If your table engine doesn't support
* it (like MYISAM), you should turn this off.
*/
transactions: boolean;
/**
* Whether to use foreign keys. If your table engine doesn't support
* it (like MYISAM), you should turn this off.
*/
foreignKeys: boolean;
/**
* Whether to use row locking. If your table engine doesn't support
* it (like MYISAM), you should turn this off.
*/
rowLocking: boolean;
/**
* Whether to use table locking. If you use row locking, this should be off.
* If you can't use row locking (like with MYISAM), you can use table
* locking to ensure data consistency.
*/
tableLocking: boolean;
}