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