sqlboiler/config.go

41 lines
764 B
Go
Raw Normal View History

package main
// Config for the running of the commands
type Config struct {
DriverName string
Schema string
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
2016-09-04 20:27:19 +10:00
Debug bool
NoTests bool
NoHooks bool
NoAutoTimestamps bool
Postgres PostgresConfig
2016-09-08 23:04:58 -07: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-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
}