Add MySQL configuration.

This commit is contained in:
Aaron L 2016-09-08 23:04:58 -07:00
parent aadcf63e52
commit 81148d4beb
3 changed files with 74 additions and 3 deletions

View file

@ -16,6 +16,7 @@ type Config struct {
NoAutoTimestamps bool
Postgres PostgresConfig
MySQL MySQLConfig
}
// PostgresConfig configures a postgres database
@ -27,3 +28,13 @@ type PostgresConfig struct {
DBName string
SSLMode string
}
// MySQLConfig configures a mysql database
type MySQLConfig struct {
User string
Pass string
Host string
Port int
DBName string
SSLMode string
}