sqlboiler/config.go
Aaron L 56234e37a1 Move main back to root folder.
- Change everything to package main.
- Make main a little more user friendly.
2016-06-12 11:19:23 -07:00

20 lines
506 B
Go

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"`
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"`
}