Versions in this module Expand all Collapse all v1 v1.5.10 Sep 8, 2022 v1.5.9 Sep 5, 2022 v1.5.8 Aug 22, 2022 Changes in this version + var CreateTimeAsc = Asc(createTime) + var CreateTimeDesc = Desc(createTime) + var IdDesc = Desc(id) + var UpdateTimeAsc = Asc(updateTime) + var UpdateTimeDesc = Desc(updateTime) + func Asc(field string) string + func Desc(field string) string v1.5.7 Aug 1, 2022 v1.5.6 Jul 1, 2022 v1.5.5 Jun 23, 2022 Changes in this version type InitOption + SkipDefaultTransaction bool v1.5.4 Apr 28, 2022 v1.5.3 Apr 28, 2022 v1.5.2 Apr 28, 2022 v1.5.1 Mar 27, 2022 v1.5.0 Mar 26, 2022 Changes in this version + func C() *gorm.DB + func Init(opt *InitOption) error + type DbType string + const MySQL + const Postgres + type InitOption struct + ConnMaxLifetime time.Duration + DbName string + Host string + LogLevel glog.LogLevel + MaxIdleConn int + MaxOpenConn int + Pass string + Port int + Type DbType + User string + type Model struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ID uint + UpdatedAt time.Time + type Operator struct + CreatedBy string + DeletedBy string + UpdatedBy string + type UModel struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ID string + UpdatedAt time.Time + func (m *UModel) BeforeCreate(tx *gorm.DB) error