Add MySQL configuration.
This commit is contained in:
parent
aadcf63e52
commit
81148d4beb
3 changed files with 74 additions and 3 deletions
11
config.go
11
config.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue