- function variations, query mods, query building sections
- remove useless toml tags
This commit is contained in:
Patrick O'brien 2016-08-31 15:10:30 +10:00
parent 41c05858fd
commit caf4cb97aa
2 changed files with 106 additions and 28 deletions

View file

@ -2,23 +2,23 @@ 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"`
BaseDir string `toml:"base_dir"`
ExcludeTables []string `toml:"exclude"`
NoHooks bool `toml:"no_hooks"`
NoAutoTimestamps bool `toml:"no_auto_timestamps"`
DriverName string
PkgName string
OutFolder string
BaseDir string
ExcludeTables []string
NoHooks bool
NoAutoTimestamps bool
Postgres PostgresConfig `toml:"postgres"`
Postgres PostgresConfig
}
// 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"`
User string
Pass string
Host string
Port int
DBName string
SSLMode string
}