Merge pull request #7252 from ellemouton/sqlite-pt2

multi: add sqlite backend option
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2023-01-31 10:14:46 -08:00
commit 5d22d5eb6c
40 files changed
+523 -237

No files matched your search

+18 -1
View File
@@ -1202,7 +1202,8 @@ litecoin.node=ltcd
[db]
; The selected database backend. The current default backend is "bolt". lnd
; also has experimental support for etcd, a replicated backend.
; also has experimental support for etcd, a replicated backend, postgres and
; sqlite.
; db.backend=bolt
; The maximum interval the graph database will wait between attempting to flush
@@ -1278,6 +1279,22 @@ litecoin.node=ltcd
; Otherwise errors may occur in lnd under high-load conditions.
; db.postgres.maxconnections=
[sqlite]
; Sqlite connection timeout. Valid time units are {s, m, h}. Set to zero to
; disable.
; db.sqlite.timeout=0s
; Maximum number of connections to the sqlite db. Set to zero for unlimited.
; db.sqlite.maxconnections=0
; The maximum amount of time to wait to execute a query if the db is locked.
; db.sqlite.busytimeout=10s
; Raw pragma option pairs to be used when opening the sqlite db. The flag
; can be specified multiple times to set multiple options.
; db.sqlite.pragmaoptions=auto_vacuum=incremental
; db.sqlite.pragmaoptions=temp_store=MEMORY
[bolt]
; If true, prevents the database from syncing its freelist to disk.