diff --git a/aperturedb/postgres.go b/aperturedb/postgres.go index 8d955fa..8b628e2 100644 --- a/aperturedb/postgres.go +++ b/aperturedb/postgres.go @@ -28,14 +28,14 @@ var ( // PostgresConfig holds the postgres database configuration. type PostgresConfig struct { - SkipMigrations bool `long:"skipmigrations" description:"Skip applying migrations on startup."` + SkipMigrations bool `long:"skipmigrations" yaml:"skipmigrations" description:"Skip applying migrations on startup."` Host string `long:"host" description:"Database server hostname."` Port int `long:"port" description:"Database server port."` User string `long:"user" description:"Database user."` Password string `long:"password" description:"Database user's password."` DBName string `long:"dbname" description:"Database name to use."` - MaxOpenConnections int32 `long:"maxconnections" description:"Max open connections to keep alive to the database server."` - RequireSSL bool `long:"requiressl" description:"Whether to require using SSL (mode: require) when connecting to the server."` + MaxOpenConnections int32 `long:"maxconnections" yaml:"maxconnections" description:"Max open connections to keep alive to the database server."` + RequireSSL bool `long:"requiressl" yaml:"requireSSL" description:"Whether to require using SSL (mode: require) when connecting to the server."` } // DSN returns the dns to connect to the database. diff --git a/aperturedb/sqlite.go b/aperturedb/sqlite.go index a8c0a4a..d127a1c 100644 --- a/aperturedb/sqlite.go +++ b/aperturedb/sqlite.go @@ -40,11 +40,11 @@ const ( type SqliteConfig struct { // SkipMigrations if true, then all the tables will be created on start // up if they don't already exist. - SkipMigrations bool `long:"skipmigrations" description:"Skip applying migrations on startup."` + SkipMigrations bool `long:"skipmigrations" yaml:"skipmigrations" description:"Skip applying migrations on startup."` // DatabaseFileName is the full file path where the database file can be // found. - DatabaseFileName string `long:"dbfile" description:"The full path to the database."` + DatabaseFileName string `long:"dbfile" yaml:"dbfile" description:"The full path to the database."` } // SqliteStore is a database store implementation that uses a sqlite backend.