Versions in this module Expand all Collapse all v0 v0.5.11 Feb 16, 2023 Changes in this version + func EscapeColumnName(s string) string + func SingularizeIdentifier(in Inflector, s string) string + type ArgType struct + CustomTypePackage string + CustomTypesFile string + DDLFilepath string + Database string + Filename string + FromDDL bool + IgnoreFields []string + IgnoreTables []string + InflectionRuleFile string + Instance string + Out string + Package string + Path string + Project string + SingleFile bool + Suffix string + Tags string + TemplatePath string + type DefaultInflector struct + func (i *DefaultInflector) Pluralize(s string) string + func (i *DefaultInflector) Singularize(s string) string + type Field struct + Col *models.Column + CustomType string + Len int + Name string + NilType string + Type string + type Index struct + Fields []*Field + FuncName string + Index *models.Index + NullableFields []*Field + Schema string + StoringFields []*Field + Type *Type + type InflectRule struct + Plural string + Singuler string + type Inflector interface + Pluralize func(string) string + Singularize func(string) string + func NewInflector(ruleFile string) (Inflector, error) + type RuleInflector struct + func (i *RuleInflector) Pluralize(s string) string + func (i *RuleInflector) Singularize(s string) string + type Type struct + Fields []*Field + Indexes []*Index + Name string + PrimaryKey *Field + PrimaryKeyFields []*Field + Schema string + Table *models.Table + type TypeLoader struct + CustomTypes *models.CustomTypes + func NewTypeLoader(l loaderImpl, i Inflector) *TypeLoader + func (tl *TypeLoader) LoadColumns(args *ArgType, typeTpl *Type) error + func (tl *TypeLoader) LoadCustomTypes(path string) error + func (tl *TypeLoader) LoadIndexColumns(args *ArgType, ixTpl *Index) error + func (tl *TypeLoader) LoadIndexes(args *ArgType, tableMap map[string]*Type) (map[string]*Index, error) + func (tl *TypeLoader) LoadSchema(args *ArgType) (map[string]*Type, map[string]*Index, error) + func (tl *TypeLoader) LoadTable(args *ArgType) (map[string]*Type, error) + func (tl *TypeLoader) LoadTableIndexes(args *ArgType, typeTpl *Type, ixMap map[string]*Index) error + func (tl *TypeLoader) Mask() string + func (tl *TypeLoader) NthParam(i int) string