sqlboiler/config.go
Patrick O'brien 22a904d025 Convert sqlboiler tests to MockDriver
* Improve impl of mock driver
2016-08-18 22:11:49 +10:00

21 lines
561 B
Go

package main
// Config for the running of the commands
type Config struct {
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 {
User string `toml:"user"`
Pass string `toml:"pass"`
Host string `toml:"host"`
Port int `toml:"port"`
DBName string `toml:"dbname"`
SSLMode string `toml:"sslmode"`
}