788d28400e
* make more sense as a third party library
40 lines
771 B
Go
40 lines
771 B
Go
package boilingcore
|
|
|
|
// Config for the running of the commands
|
|
type Config struct {
|
|
DriverName string
|
|
Schema string
|
|
PkgName string
|
|
OutFolder string
|
|
BaseDir string
|
|
WhitelistTables []string
|
|
BlacklistTables []string
|
|
Tags []string
|
|
Debug bool
|
|
NoTests bool
|
|
NoHooks bool
|
|
NoAutoTimestamps bool
|
|
|
|
Postgres PostgresConfig
|
|
MySQL MySQLConfig
|
|
}
|
|
|
|
// PostgresConfig configures a postgres database
|
|
type PostgresConfig struct {
|
|
User string
|
|
Pass string
|
|
Host string
|
|
Port int
|
|
DBName string
|
|
SSLMode string
|
|
}
|
|
|
|
// MySQLConfig configures a mysql database
|
|
type MySQLConfig struct {
|
|
User string
|
|
Pass string
|
|
Host string
|
|
Port int
|
|
DBName string
|
|
SSLMode string
|
|
}
|