mirror of
https://github.com/harness/drone.git
synced 2025-05-07 00:50:50 +08:00
21 lines
532 B
Markdown
21 lines
532 B
Markdown
# 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_DATASOURCE="/var/lib/drone/drone.sqlite"
|
|
```
|
|
|
|
## Sqlite3 connection
|
|
|
|
The components of the datasource connection string are:
|
|
|
|
* `path` local path to sqlite database. The default value is `/var/lib/drone/drone.sqlite`.
|
|
|
|
This is an example connection string:
|
|
|
|
```
|
|
/var/lib/drone/drone.sqlite
|
|
```
|