Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigEnvironment string
View Source
var ConfigFile string
Functions ¶
func ConfigFlags ¶
func GetConnection ¶
func GetConnection(env *Environment) (*sql.DB, string, error)
func ReadConfig ¶
func ReadConfig() (map[string]*Environment, error)
Types ¶
type Environment ¶
type Environment struct {
Dialect string `yaml:"dialect"`
DataSource string `yaml:"datasource"`
Dir string `yaml:"dir"`
TableName string `yaml:"table"`
SchemaName string `yaml:"schema"`
}
func GetEnvironment ¶
func GetEnvironment() (*Environment, error)
Click to show internal directories.
Click to hide internal directories.