Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidValuesInConfig = errors.New("invalid values in config")
Functions ¶
func ValidateIdentifier ¶
func ValidateIdentifierList ¶
Types ¶
type Config ¶
type Config struct {
//nolint:tagliatelle
ModelName string `yaml:"model_name"`
//nolint:tagliatelle
DatabaseName string `yaml:"db_name"`
//nolint:tagliatelle
Roles []Role `yaml:"roles"`
Templates []Template `yaml:"templates"`
Output *Output `yaml:"output"`
}
func ReadConfig ¶
func (*Config) GetOutputPath ¶ added in v0.12.0
GetOutputPath returns the output path for the given type if enabled, or empty string if not. The outputType must be one of: "sql", "png", "svg". Panics if an invalid outputType is provided.
type Output ¶ added in v0.12.0
type Output struct {
SQL *OutputFile `yaml:"sql"`
PNG *OutputFile `yaml:"png"`
SVG *OutputFile `yaml:"svg"`
}
type OutputFile ¶ added in v0.12.0
type OutputFile struct {
Path string `yaml:"path"`
}
Click to show internal directories.
Click to hide internal directories.