2017-01-14 13:38:40 +10:00
|
|
|
package boilingcore
|
2016-06-11 18:25:00 -07:00
|
|
|
|
|
|
|
// Config for the running of the commands
|
|
|
|
type Config struct {
|
2016-08-31 15:10:30 +10:00
|
|
|
DriverName string
|
2016-09-09 07:23:10 +10:00
|
|
|
Schema string
|
2016-08-31 15:10:30 +10:00
|
|
|
PkgName string
|
|
|
|
OutFolder string
|
|
|
|
BaseDir string
|
2016-09-06 00:41:12 +10:00
|
|
|
WhitelistTables []string
|
2016-09-08 22:41:57 -07:00
|
|
|
BlacklistTables []string
|
2016-09-04 23:44:54 +10:00
|
|
|
Tags []string
|
2017-01-15 21:21:04 -08:00
|
|
|
Replacements []string
|
2016-09-04 20:27:19 +10:00
|
|
|
Debug bool
|
2016-09-02 11:22:56 +10:00
|
|
|
NoTests bool
|
2016-08-31 15:10:30 +10:00
|
|
|
NoHooks bool
|
|
|
|
NoAutoTimestamps bool
|
2017-01-26 20:42:14 -08:00
|
|
|
Wipe bool
|
2016-06-11 18:25:00 -07:00
|
|
|
|
2016-08-31 15:10:30 +10:00
|
|
|
Postgres PostgresConfig
|
2016-09-08 23:04:58 -07:00
|
|
|
MySQL MySQLConfig
|
2017-03-13 12:55:26 +03:00
|
|
|
MSSQL MSSQLConfig
|
2016-06-11 18:25:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// PostgresConfig configures a postgres database
|
|
|
|
type PostgresConfig struct {
|
2016-08-31 15:10:30 +10:00
|
|
|
User string
|
|
|
|
Pass string
|
|
|
|
Host string
|
|
|
|
Port int
|
|
|
|
DBName string
|
|
|
|
SSLMode string
|
2016-06-11 18:25:00 -07:00
|
|
|
}
|
2016-09-08 23:04:58 -07:00
|
|
|
|
|
|
|
// MySQLConfig configures a mysql database
|
|
|
|
type MySQLConfig struct {
|
|
|
|
User string
|
|
|
|
Pass string
|
|
|
|
Host string
|
|
|
|
Port int
|
|
|
|
DBName string
|
|
|
|
SSLMode string
|
|
|
|
}
|
2017-03-13 12:55:26 +03:00
|
|
|
|
|
|
|
// MSSQLConfig configures a mysql database
|
|
|
|
type MSSQLConfig struct {
|
|
|
|
User string
|
|
|
|
Pass string
|
|
|
|
Host string
|
|
|
|
Port int
|
|
|
|
DBName string
|
|
|
|
SSLMode string
|
|
|
|
}
|