Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config struct Config yaml file.
type Project ¶
type Project struct {
Name string
Migrations []ProjectMigration
}
Project struct Project for Config.
func (*Project) GetProjectMigration ¶
func (p *Project) GetProjectMigration(dbName string) (ProjectMigration, error)
GetProjectMigration gets relation database in project by database name.
type ProjectMigration ¶
ProjectMigration struct relation Project with Database.
type YAMLConfig ¶
type YAMLConfig struct {
Projects map[string]YAMLConfigProject `yaml:"projects"`
Databases map[string]YAMLConfigDatabase `yaml:"databases"`
}
YAMLConfig takes configuration values from YAML file.
type YAMLConfigDatabase ¶
type YAMLConfigDatabase struct {
Type string `yaml:"type"`
DSN string `yaml:"dsn"`
Schema string `yaml:"schema"`
}
YAMLConfigDatabase is a block for parse databases in YAML config file.
type YAMLConfigProject ¶
YAMLConfigProject is a block for parse projects in YAML config file.
Click to show internal directories.
Click to hide internal directories.