Versions in this module Expand all Collapse all v2 v2.10.3 Feb 9, 2024 Changes in this version + var DefaultViewModel = DefaultTableModel + func ProcessSchema(dirPath string, schemaMetaData metadata.Schema, generatorTemplate Template) error + type EnumModel struct + FileName string + Skip bool + TypeName string + ValueName func(value string) string + func DefaultEnumModel(enumMetaData metadata.Enum) EnumModel + func (em EnumModel) UseFileName(fileName string) EnumModel + func (em EnumModel) UseTypeName(typeName string) EnumModel + type EnumSQLBuilder struct + FileName string + InstanceName string + Path string + Skip bool + ValueName func(enumValue string) string + func DefaultEnumSQLBuilder(enumMetaData metadata.Enum) EnumSQLBuilder + func (e EnumSQLBuilder) PackageName() string + func (e EnumSQLBuilder) UseFileName(name string) EnumSQLBuilder + func (e EnumSQLBuilder) UseInstanceName(name string) EnumSQLBuilder + func (e EnumSQLBuilder) UsePath(path string) EnumSQLBuilder + type Model struct + Enum func(enum metadata.Enum) EnumModel + Path string + Skip bool + Table func(table metadata.Table) TableModel + View func(table metadata.Table) ViewModel + func DefaultModel() Model + func (m Model) PackageName() string + func (m Model) UseEnum(enumFunc func(enumMetaData metadata.Enum) EnumModel) Model + func (m Model) UsePath(path string) Model + func (m Model) UseTable(tableModelFunc func(table metadata.Table) TableModel) Model + func (m Model) UseView(tableModelFunc func(table metadata.Table) TableModel) Model + type SQLBuilder struct + Enum func(enum metadata.Enum) EnumSQLBuilder + Path string + Skip bool + Table func(table metadata.Table) TableSQLBuilder + View func(view metadata.Table) TableSQLBuilder + func DefaultSQLBuilder() SQLBuilder + func (sb SQLBuilder) UseEnum(enumFunc func(enum metadata.Enum) EnumSQLBuilder) SQLBuilder + func (sb SQLBuilder) UsePath(path string) SQLBuilder + func (sb SQLBuilder) UseTable(tableFunc func(table metadata.Table) TableSQLBuilder) SQLBuilder + func (sb SQLBuilder) UseView(viewFunc func(table metadata.Table) ViewSQLBuilder) SQLBuilder + type Schema struct + Model Model + Path string + SQLBuilder SQLBuilder + func DefaultSchema(schemaMetaData metadata.Schema) Schema + func (s Schema) UseModel(model Model) Schema + func (s Schema) UsePath(path string) Schema + func (s Schema) UseSQLBuilder(sqlBuilder SQLBuilder) Schema + type TableModel struct + Field func(columnMetaData metadata.Column) TableModelField + FileName string + Skip bool + TypeName string + func DefaultTableModel(tableMetaData metadata.Table) TableModel + func (t TableModel) UseField(structFieldFunc func(columnMetaData metadata.Column) TableModelField) TableModel + func (t TableModel) UseFileName(fileName string) TableModel + func (t TableModel) UseTypeName(typeName string) TableModel + type TableModelField struct + Name string + Tags []string + Type Type + func DefaultTableModelField(columnMetaData metadata.Column) TableModelField + func (f TableModelField) TagsString() string + func (f TableModelField) UseName(name string) TableModelField + func (f TableModelField) UseTags(tags ...string) TableModelField + func (f TableModelField) UseType(t Type) TableModelField + type TableSQLBuilder struct + Column func(columnMetaData metadata.Column) TableSQLBuilderColumn + DefaultAlias string + FileName string + InstanceName string + Path string + Skip bool + TypeName string + func DefaultTableSQLBuilder(tableMetaData metadata.Table) TableSQLBuilder + func (tb TableSQLBuilder) PackageName() string + func (tb TableSQLBuilder) UseColumn(columnsFunc func(column metadata.Column) TableSQLBuilderColumn) TableSQLBuilder + func (tb TableSQLBuilder) UseDefaultAlias(defaultAlias string) TableSQLBuilder + func (tb TableSQLBuilder) UseFileName(name string) TableSQLBuilder + func (tb TableSQLBuilder) UseInstanceName(name string) TableSQLBuilder + func (tb TableSQLBuilder) UsePath(path string) TableSQLBuilder + func (tb TableSQLBuilder) UseTypeName(name string) TableSQLBuilder + type TableSQLBuilderColumn struct + Name string + Type string + func DefaultTableSQLBuilderColumn(columnMetaData metadata.Column) TableSQLBuilderColumn + type Template struct + Dialect jet.Dialect + Schema func(schemaMetaData metadata.Schema) Schema + func Default(dialect jet.Dialect) Template + func (t Template) UseSchema(schemaFunc func(schemaMetaData metadata.Schema) Schema) Template + type Type struct + ImportPath string + Name string + func NewType(dummyObject interface{}) Type + type ViewModel = TableModel + type ViewSQLBuilder = TableSQLBuilder + func DefaultViewSQLBuilder(viewMetaData metadata.Table) ViewSQLBuilder