2016-06-12 11:19:23 -07:00
|
|
|
package main
|
2016-06-11 18:25:00 -07:00
|
|
|
|
|
|
|
// Config for the running of the commands
|
|
|
|
type Config struct {
|
2016-06-12 15:34:57 -07:00
|
|
|
DriverName string `toml:"driver_name"`
|
|
|
|
PkgName string `toml:"pkg_name"`
|
|
|
|
OutFolder string `toml:"out_folder"`
|
|
|
|
TableNames []string `toml:"table_names"`
|
2016-06-11 18:25:00 -07:00
|
|
|
|
|
|
|
Postgres PostgresConfig `toml:"postgres"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// PostgresConfig configures a postgres database
|
|
|
|
type PostgresConfig struct {
|
2016-07-11 15:17:49 -07: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"`
|
2016-06-11 18:25:00 -07:00
|
|
|
}
|