Require foreign keys and recommend txlock on SQLite

This commit is contained in:
Tulir Asokan
2022-11-22 21:32:08 +02:00
parent f424838f0b
commit d7c72a82de
3 changed files with 18 additions and 17 deletions

View File

@@ -29,10 +29,11 @@ appservice:
# Database config.
database:
# The database type. "sqlite3" and "postgres" are supported.
# The database type. "sqlite3-fk-wal" and "postgres" are supported.
type: postgres
# The database URI.
# SQLite: File name is enough. https://github.com/mattn/go-sqlite3#connection-string
# SQLite: A raw file path is supported, but `file:<path>?_txlock=immediate` is recommended.
# https://github.com/mattn/go-sqlite3#connection-string
# Postgres: Connection string. For example, postgres://user:password@host/database?sslmode=disable
# To connect via Unix socket, use something like postgres:///dbname?host=/var/run/postgresql
uri: postgres://user:password@host/database?sslmode=disable