change source to datasource, for consistency with Go standard lib

This commit is contained in:
Brad Rydzewski 2014-10-11 16:34:53 -07:00
parent 4f3f2875f6
commit 69580a26c7
3 changed files with 8 additions and 8 deletions

View file

@ -29,14 +29,14 @@ Below are some example configurations that you can use as reference:
```
# to use postgres
[datasource]
[database]
driver="postgres"
source="host=172.17.0.2 user=postgres dbname=drone sslmode=disable"
datasource="host=172.17.0.2 user=postgres dbname=drone sslmode=disable"
# to use mysql
[datasource]
[database]
driver="mysql"
source="root@tcp(172.17.0.2:3306)/drone"
datasource="root@tcp(172.17.0.2:3306)/drone"
```
@ -63,7 +63,7 @@ cert=""
[database]
driver=""
source=""
datasource=""
[registration]
open=true
@ -112,7 +112,7 @@ export DRONE_SERVER_SSL_CERT=""
# custom database settings
export DRONE_DATABASE_DRIVER=""
export DRONE_DATABASE_SOURCE=""
export DRONE_DATABASE_DATASOURCE=""
# enable users to self-register
export DRONE_REGISTRATION_OPEN=false

View file

@ -18,7 +18,7 @@ port=":80"
[database]
driver="sqlite3"
source="/var/lib/drone/drone.sqlite"
datasource="/var/lib/drone/drone.sqlite"
#####################################################################

View file

@ -42,7 +42,7 @@ var (
var (
// Database driver configuration. Defaults to sqlite
// when no database configuration specified.
datasource = config.String("database-source", "drone.sqlite")
datasource = config.String("database-datasource", "drone.sqlite")
driver = config.String("database-driver", "sqlite3")
// HTTP Server settings.