sqlboiler/config.go

22 lines
561 B
Go
Raw Normal View History

package main
// Config for the running of the commands
type Config struct {
2016-08-16 12:38:31 +02:00
DriverName string `toml:"driver_name"`
PkgName string `toml:"pkg_name"`
OutFolder string `toml:"out_folder"`
ExcludeTables []string `toml:"exclude"`
Postgres PostgresConfig `toml:"postgres"`
}
// PostgresConfig configures a postgres database
type PostgresConfig struct {
2016-07-12 00:17:49 +02:00
User string `toml:"user"`
Pass string `toml:"pass"`
Host string `toml:"host"`
Port int `toml:"port"`
DBName string `toml:"dbname"`
SSLMode string `toml:"sslmode"`
}