diff options
author | Jeremy Lin <[email protected]> | 2022-04-26 17:50:20 -0700 |
---|---|---|
committer | Jeremy Lin <[email protected]> | 2022-04-26 17:50:20 -0700 |
commit | b617ffd2af71d81c24955c00c1f378325613dec0 (patch) | |
tree | 06f39a13cdc5feb2d75a261806b075093ad085a7 /.env.template | |
parent | 3abf173d8954c982383285b29b39d15043e974cb (diff) | |
download | vaultwarden-b617ffd2af71d81c24955c00c1f378325613dec0.tar.gz vaultwarden-b617ffd2af71d81c24955c00c1f378325613dec0.zip |
Add support for database connection init statements
This is probably mainly useful for running connection-scoped pragma statements.
Diffstat (limited to '.env.template')
-rw-r--r-- | .env.template | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.env.template b/.env.template index 3c8a5ebb..68c487f4 100644 --- a/.env.template +++ b/.env.template @@ -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 |