2015-07-07 04:13:50 +00:00
# SQLite
2015-07-10 08:33:31 +00:00
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:
2015-07-07 04:13:50 +00:00
2015-08-09 03:51:12 +00:00
```bash
2015-10-08 00:17:15 +00:00
DATABASE_DRIVER=sqlite3
DATABASE_CONFIG=/var/lib/drone/drone.sqlite
2015-07-07 04:13:50 +00:00
```
2015-08-09 03:51:12 +00:00
## Sqlite3 configuration
2015-07-10 08:33:31 +00:00
2015-08-10 03:18:21 +00:00
The following is the standard URI connection scheme:
```
file:path[?options]
```
2015-08-04 05:46:58 +00:00
The components of the datasource connection string are:
2015-07-07 04:13:50 +00:00
2015-08-10 03:18:21 +00:00
* `file:` URI prefix to identify database files.
* `path` local path to the database file. The default value is `/var/lib/drone/drone.sqlite` .
* `?options` connection specific options. **not recommended**
2015-07-07 04:13:50 +00:00
2015-08-10 03:18:21 +00:00
## Sqlite3 options
2015-07-07 04:13:50 +00:00
2015-10-08 00:17:15 +00:00
See the official [driver documentation ](https://www.sqlite.org/uri.html#coreqp ) for a full list of driver options.