mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 10:45:57 +03:00
Switch to a single config option for database connection init
The main pro is less config options, while the main con is less clarity in what the defaults are for the various database types.
This commit is contained in:
@@ -31,14 +31,12 @@
|
||||
|
||||
## Database connection initialization
|
||||
## Allows SQL statements to be run whenever a new database connection is created.
|
||||
## For example, this can be used to run connection-scoped pragma statements.
|
||||
##
|
||||
## Statements to run when creating a new SQLite connection
|
||||
# SQLITE_CONN_INIT="PRAGMA busy_timeout = 5000; PRAGMA synchronous = NORMAL;"
|
||||
## Statements to run when creating a new MySQL connection
|
||||
# MYSQL_CONN_INIT=""
|
||||
## Statements to run when creating a new PostgreSQL connection
|
||||
# POSTGRESQL_CONN_INIT=""
|
||||
## This is mainly useful for connection-scoped pragmas.
|
||||
## If empty, a database-specific default is used:
|
||||
## - SQLite: "PRAGMA busy_timeout = 5000; PRAGMA synchronous = NORMAL;"
|
||||
## - MySQL: ""
|
||||
## - PostgreSQL: ""
|
||||
# DATABASE_CONN_INIT=""
|
||||
|
||||
## Individual folders, these override %DATA_FOLDER%
|
||||
# RSA_KEY_FILENAME=data/rsa_key
|
||||
|
Reference in New Issue
Block a user