Versions in this module Expand all Collapse all v0 v0.0.3 Jul 27, 2021 v0.0.2 Jul 27, 2021 Changes in this version + const ColumnsKeyDefault + const ColumnsKeyIndex + const ColumnsKeyPrimary + const ColumnsKeyUnique + const ColumnsKeyUniqueIndex + func CapLowercase(name string) string + func FilterKeywords(src string) string + func GenFListIndex(info FList, status int) string + func GenPreloadList(list []PreloadInfo, multi bool) string + func GetTablePrefixName(name string) string + type BaseInfo struct + Name string + Notes string + type ColumnsInfo struct + ForeignKeyList []ForeignKey + Gormt string + Index []KList + IsNull bool + Type string + type ColumnsKey int + type DBInfo struct + DbName string + PackageName string + TabList []TabInfo + type EmInfo struct + ColName string + ColNameEx string + ColStructName string + IsMulti bool + Notes string + Type string + type FEm struct + ColName string + ColStructName string + Type string + type FList struct + Kem []FEm + Key ColumnsKey + KeyName string + type ForeignKey struct + ColumnName string + TableName string + type GenOutInfo struct + FileCtx string + FileName string + func Generate(info DBInfo) (out []GenOutInfo, m _Model) + type IModel interface + GenModel func() DBInfo + GetDbName func() string + GetPkgName func() string + GetTableNames func() string + type KList struct + Key ColumnsKey + KeyName string + KeyType string + Multi bool + type PreloadInfo struct + ColName string + ColStructName string + ForeignkeyCol string + ForeignkeyStructName string + ForeignkeyTableName string + IsMulti bool + Notes string + type TabInfo struct + Em []ColumnsInfo + SQLBuildStr string