Documentation
¶
Index ¶
- type Config
- type Enum
- type Table
- func (t *Table) DbModelsDirPath() string
- func (t *Table) Filename() string
- func (t *Table) InvalidReasons() error
- func (t *Table) IsValid() bool
- func (t *Table) ModelsDirPath() string
- func (t *Table) QuerierInterfaceGoPath() string
- func (t *Table) QuerierMockGoPath() string
- func (t *Table) QuerySQLPath() string
- func (t *Table) SQLFilename() string
- func (t *Table) SchemaQueriesDirPath() string
- func (t *Table) SchemaSQLPath() string
- func (t *Table) SchemaTablesDirPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database string `yaml:"database"` Tables []Table `yaml:"tables"` SchemaTablesDirOverride string `yaml:"schema_tables_dir"` SchemaQueriesDirOverride string `yaml:"schema_queries_dir"` DbModelsDirOverride string `yaml:"dbmodels_dir"` }
func ParseConfigFromYAMLPath ¶
type Table ¶
type Table struct { TableName string `yaml:"name"` FilenameOverride string `yaml:"filename_override"` ModelClass string `yaml:"model_class"` Enums []Enum `yaml:"enums"` // contains filtered or unexported fields }
func TablesFromConfig ¶
func (*Table) DbModelsDirPath ¶
func (*Table) InvalidReasons ¶
func (*Table) ModelsDirPath ¶
func (*Table) QuerierInterfaceGoPath ¶
func (*Table) QuerierMockGoPath ¶
func (*Table) QuerySQLPath ¶
func (*Table) SQLFilename ¶
func (*Table) SchemaQueriesDirPath ¶
func (*Table) SchemaSQLPath ¶
func (*Table) SchemaTablesDirPath ¶
Click to show internal directories.
Click to hide internal directories.