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-08-31 15:10:30 +10:00
|
|
|
DriverName string
|
|
|
|
PkgName string
|
|
|
|
OutFolder string
|
|
|
|
BaseDir string
|
|
|
|
ExcludeTables []string
|
|
|
|
NoHooks bool
|
|
|
|
NoAutoTimestamps bool
|
2016-06-11 18:25:00 -07:00
|
|
|
|
2016-08-31 15:10:30 +10:00
|
|
|
Postgres PostgresConfig
|
2016-06-11 18:25:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// PostgresConfig configures a postgres database
|
|
|
|
type PostgresConfig struct {
|
2016-08-31 15:10:30 +10:00
|
|
|
User string
|
|
|
|
Pass string
|
|
|
|
Host string
|
|
|
|
Port int
|
|
|
|
DBName string
|
|
|
|
SSLMode string
|
2016-06-11 18:25:00 -07:00
|
|
|
}
|