sqlboiler/boilingcore/config.go

42 lines
798 B
Go
Raw Normal View History

package boilingcore
// Config for the running of the commands
type Config struct {
DriverName string
Schema string
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
Replacements []string
2016-09-04 12:27:19 +02:00
Debug bool
NoTests bool
NoHooks bool
NoAutoTimestamps bool
Postgres PostgresConfig
2016-09-09 08:04:58 +02:00
MySQL MySQLConfig
}
// PostgresConfig configures a postgres database
type PostgresConfig struct {
User string
Pass string
Host string
Port int
DBName string
SSLMode string
}
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
}