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