Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReverseConfig ¶
type ReverseConfig struct {
Kind string `yaml:"kind"`
Name string `yaml:"name"`
Source ReverseSource `yaml:"source"`
Targets []ReverseTarget `yaml:"targets"`
}
ReverseConfig represents a reverse configuration
func NewReverseConfigFromYAML ¶
func NewReverseConfigFromYAML(path string) ([]*ReverseConfig, error)
NewReverseConfigFromYAML parse config yaml and return it. support multiple yaml document in one file.
type ReverseSource ¶
ReverseSource represents a reverse source which should be a database connection
type ReverseTarget ¶
type ReverseTarget struct {
Type string `yaml:"type"`
IncludeTables []string `yaml:"include_tables"`
ExcludeTables []string `yaml:"exclude_tables"`
TableMapper string `yaml:"table_mapper"`
ColumnMapper string `yaml:"column_mapper"`
TemplatePath string `yaml:"template_path"`
Template string `yaml:"template"`
MultipleFiles bool `yaml:"multiple_files"`
OutputDir string `yaml:"output_dir"`
TablePrefix string `yaml:"table_prefix"`
Language string `yaml:"language"`
TableName bool `yaml:"table_name"`
ColumnName bool `yaml:"column_name"`
Funcs map[string]string `yaml:"funcs"`
Formatter string `yaml:"formatter"`
Importter string `yaml:"importter"`
ExtName string `yaml:"ext_name"`
Created string `yaml:"created"`
Updated string `yaml:"updated"`
Deleted string `yaml:"deleted"`
Version string `yaml:"version"`
}
ReverseTarget represents a reverse target
Click to show internal directories.
Click to hide internal directories.