Versions in this module Expand all Collapse all v0 v0.2.2 Nov 26, 2024 Changes in this version + var MetadataLoader metadataLoader = metadataLoader + func GetConnection() *gorm.DB + func NewNullTime(t time.Time) sql.NullTime + func Transaction(f func(tx *gorm.DB) error) error + type BaseModel struct + CreatedAt sql.NullTime + DeletedAt sql.NullTime + ID int + UpdatedAt sql.NullTime + type Connect interface + GenConnect func(gormConf *gorm.Config) (*gorm.DB, *sql.DB, error) + type DatabaseConfig struct + DBConfig Connect + Enable bool + EnableAutoImportData bool + EnableAutoMigrate bool + LogMode string + func (dbc DatabaseConfig) Load()