-
-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathconfig.sqlite-example.json
More file actions
60 lines (60 loc) · 1.87 KB
/
Copy pathconfig.sqlite-example.json
File metadata and controls
60 lines (60 loc) · 1.87 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
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
{
"connections": [
{
"id": "sqlite_file_db",
"type": "sqlite",
"database_path": "./data/app.db",
"journal_mode": "WAL",
"cache_size": 2000,
"read_only": false,
"use_modernc_driver": true,
"query_timeout": 30,
"max_open_conns": 1,
"max_idle_conns": 1,
"conn_max_lifetime_seconds": 300,
"conn_max_idle_time_seconds": 60
},
{
"id": "sqlite_encrypted",
"type": "sqlite",
"database_path": "./data/encrypted.db",
"encryption_key": "your-secret-encryption-key-here",
"journal_mode": "WAL",
"cache_size": 2000,
"read_only": false,
"use_modernc_driver": false,
"query_timeout": 30,
"max_open_conns": 1,
"max_idle_conns": 1,
"conn_max_lifetime_seconds": 300,
"conn_max_idle_time_seconds": 60
},
{
"id": "sqlite_memory",
"type": "sqlite",
"database_path": ":memory:",
"cache_size": 1000,
"read_only": false,
"use_modernc_driver": true,
"query_timeout": 30,
"max_open_conns": 1,
"max_idle_conns": 1,
"conn_max_lifetime_seconds": 300,
"conn_max_idle_time_seconds": 60
},
{
"id": "sqlite_readonly",
"type": "sqlite",
"database_path": "./data/reference.db",
"journal_mode": "DELETE",
"cache_size": 1000,
"read_only": true,
"use_modernc_driver": true,
"query_timeout": 60,
"max_open_conns": 1,
"max_idle_conns": 1,
"conn_max_lifetime_seconds": 300,
"conn_max_idle_time_seconds": 60
}
]
}