mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-10 10:45:57 +03:00
Add support for database connection init statements
This is probably mainly useful for running connection-scoped pragma statements.
This commit is contained in:
@@ -29,6 +29,17 @@
|
||||
## Define the size of the connection pool used for connecting to the database.
|
||||
# DATABASE_MAX_CONNS=10
|
||||
|
||||
## 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=""
|
||||
## Statements to run when creating a new MySQL connection
|
||||
# MYSQL_CONN_INIT=""
|
||||
## Statements to run when creating a new PostgreSQL connection
|
||||
# POSTGRESQL_CONN_INIT=""
|
||||
|
||||
## Individual folders, these override %DATA_FOLDER%
|
||||
# RSA_KEY_FILENAME=data/rsa_key
|
||||
# ICON_CACHE_FOLDER=data/icon_cache
|
||||
|
Reference in New Issue
Block a user