-
Notifications
You must be signed in to change notification settings - Fork 86
/
db.conf
46 lines (40 loc) · 1.17 KB
/
db.conf
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
common = {
dataSourceClass = slick.jdbc.DatabaseUrlDataSource
profile = "slick.jdbc.SQLiteProfile$"
db {
//for information on parameters available here see
//https://scala-slick.org/doc/3.3.1/api/index.html#slick.jdbc.JdbcBackend$DatabaseFactoryDef@forConfig(String,Config,Driver,ClassLoader):Database
path = ${bitcoin-s.datadir}/${bitcoin-s.network}/
driver = org.sqlite.JDBC
numThreads = 5 # default num threads is 20, which is way too much
# as long as we're on SQLite there's no point
# in doing connection pooling
connectionPool = disabled
}
}
bitcoin-s {
wallet = ${common}
wallet {
# this config key is read by Slick
db {
name = walletdb.sqlite
url = "jdbc:sqlite:"${bitcoin-s.wallet.db.path}${bitcoin-s.wallet.db.name}
}
}
node = ${common}
node {
# this config key is read by Slick
db {
name = nodedb.sqlite
url = "jdbc:sqlite:"${bitcoin-s.node.db.path}${bitcoin-s.node.db.name}
}
}
chain = ${common}
chain {
# this config key is read by Slick
db {
name = chaindb.sqlite
url = "jdbc:sqlite:"${bitcoin-s.chain.db.path}${bitcoin-s.chain.db.name}
}
}
}