Versions in this module Expand all Collapse all v1 v1.5.0 Feb 5, 2021 Changes in this version + const DefaultDeletedAtTimestamp + const MySQLDuplicateEntryErrno + const PostgreSQLUniqueViolationErrno + const SQLiteUniqueConstraintErrno + func CreateErr(rdb *gorm.DB) (xstatus.DbStatus, error) + func DeleteErr(rdb *gorm.DB) (xstatus.DbStatus, error) + func GenerateOrderByExp(source string, dict PropertyDict) string + func HookDeletedAt(db *gorm.DB, deletedAtTimestamp string) + func IsMySQL(db *gorm.DB) bool + func IsMySQLDuplicateEntryError(err error) bool + func IsPostgreSQL(db *gorm.DB) bool + func IsPostgreSQLUniqueViolationError(err error) bool + func IsSQLite(db *gorm.DB) bool + func IsSQLiteUniqueConstraintError(err error) bool + func QueryErr(rdb *gorm.DB) (xstatus.DbStatus, error) + func UpdateErr(rdb *gorm.DB) (xstatus.DbStatus, error) + type GormTime struct + CreatedAt time.Time + DeletedAt *time.Time + UpdatedAt time.Time + type GormTime2 struct + CreatedAt time.Time + UpdatedAt time.Time + type ILogger interface + Print func(v ...interface{}) + type LoggerLogger struct + func NewLoggerLogger(logger logrus.StdLogger) *LoggerLogger + func (g *LoggerLogger) Print(v ...interface{}) + type LogrusLogger struct + func NewLogrusLogger(logger *logrus.Logger) *LogrusLogger + func (g *LogrusLogger) Print(v ...interface{}) + type PropertyDict = orderby.PropertyDict + type PropertyValue = orderby.PropertyValue + func NewPropertyValue(reverse bool, destinations ...string) *PropertyValue + type SilenceLogger struct + func NewSilenceLogger() *SilenceLogger + func (g *SilenceLogger) Print(...interface{})