2016-06-12 20:19:23 +02:00
|
|
|
package main
|
2016-06-12 03:25:00 +02:00
|
|
|
|
|
|
|
// 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"`
|
|
|
|
TableName string `toml:"table_name"`
|
|
|
|
|
|
|
|
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"`
|
|
|
|
}
|