mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-21 17:35:03 +01:00
1.4 KiB
1.4 KiB
SQLite
Drone uses SQLite as the default database with zero configuration required. In order to customize the SQLite database configuration you should specify the following environment variables:
DATABASE_DRIVER="sqlite3"
DATABASE_CONFIG="/var/lib/drone/drone.sqlite"
Sqlite3 configuration
The following is the standard URI connection scheme:
file:path[?options]
The components of the datasource connection string are:
file:URI prefix to identify database files.pathlocal path to the database file. The default value is/var/lib/drone/drone.sqlite.?optionsconnection specific options. not recommended
Sqlite3 options
This section lists all connection options used in the connection string format. Connection options are pairs in the following form: name=value. The value is always case sensitive. Separate options with the ampersand (i.e. &) character:
vfsopens the database connection using the VFS value.modeopens the database asro,rw,rwcormemory.cacheopens the database withsharedorprivatecache.psowoverrides the powersafe overwrite property of the database file being opened._locsets the location of the time format. Useautoto auto-detect._busy_timeoutsets the value of thesqlite3_busy_timeout_txlocksets the locking behavior toimmediate,deferred, orexclusive