Versions in this module Expand all Collapse all v1 v1.0.1 Dec 20, 2024 Changes in this version + const MONGO_MODEL + const MYSQL_MODEL + const ModelGenLock + const ModelTpl + func AddTableStructToTpl(cfg ConnConfig) + func CreateProject(force bool) + type ConnConfig struct + SshHost string + SshPort string + SshUser string + Tables []string + type Model struct + Doc string + Fields []*field + IsDefaultPrimary bool + LowerFirstLetter string + LowerFirstName string + ModelStyle string + Name string + NameSql string + PrimaryFields []*field + QuerySql [2]string + SnakeName string + UniqueFields []*field + UpdateSql string + UpsertSqlSuffix string + func (s Model) String() string + type MysqlConfig struct + Db string + Host string + Password string + Port string + User string + func (c MysqlConfig) ConnString() string + type Project struct + ImprotPrefix string + Name string + func NewProject(src []byte) *Project + func (p *Project) Generator(force bool) + func (t Project) Parse() *tplInfo + func (t Project) TypeImportString() string + func (t Project) TypesString() string