Versions in this module Expand all Collapse all v1 v1.2.0 Feb 1, 2024 v1.1.0 Feb 1, 2024 v1.0.0 Feb 1, 2024 Changes in this version + type DbConfig struct + DbName string + DbType string + Host string + Password string + Port int32 + User string + func (dbConfig *DbConfig) LogInfo() (dburl string) + func (dbConfig *DbConfig) MakeDbUrl() (dburl string) + func (dbConfig *DbConfig) MakeDbUrlMysql() (dburl string) + func (dbConfig *DbConfig) MakeDbUrlPostgres() (dburl string) + func (dbConfig *DbConfig) MakeDbUrlPostgresSsl() (dburl string) + func (dbConfig *DbConfig) MakeDbUrlSsl() (dburl string) + type DbFactroy struct + AllTables []metadata.Tables + Author string + DbConfig *DbConfig + DbName string + DbType string + DbUrl string + DirFileCS []metadata.DirFileC + GenDir string + GenDirTest string + I int + ModuleDefine common.ModuleDefine + Pkey string + PkeyType string + StringFieldLen string + StringFieldName string + Table string + TableComment *string + Tables []string + TestFiles []string + func (dbFactroy *DbFactroy) BuildInfo(gendir string) + func (dbFactroy *DbFactroy) BuildInfoTest(gendir string) + func (dbFactroy *DbFactroy) BuildModel() (cs *[]metadata.Columns, ms *list.List, ps *list.List, msdto *list.List) + func (dbFactroy *DbFactroy) CheckTableExist() bool + func (dbFactroy *DbFactroy) FindColumns() *[]metadata.Columns + func (dbFactroy *DbFactroy) FindGoType(fieldType string) (goType string) + func (dbFactroy *DbFactroy) FindPgPkey(table string) []metadata.PkInfo + func (dbFactroy *DbFactroy) FindProtoType(fieldType string) (pbType string) + func (dbFactroy *DbFactroy) FindTableComment() + func (dbFactroy *DbFactroy) FindTables() []metadata.Tables + func (dbFactroy *DbFactroy) Ini() (dbinst *gorm.DB) + func (dbFactroy *DbFactroy) IniDb(conn string) (dbinst *gorm.DB) + func (dbFactroy *DbFactroy) IniLog() *DbFactroy + func (dbFactroy *DbFactroy) IsMysql() bool + func (dbFactroy *DbFactroy) MakeModelProto() *list.List + func (dbFactroy *DbFactroy) MakeModelProtoBody(columns *[]metadata.Columns) *list.List + func (dbFactroy *DbFactroy) Println() + func (dbFactroy *DbFactroy) SendEmail(subj, msg string) + func (tmp *DbFactroy) String() string + func (tmp *DbFactroy) ToString() string