Versions in this module Expand all Collapse all v1 v1.6.1 Feb 3, 2026 v1.6.0 Jan 30, 2026 v1.5.0 Jan 13, 2026 Changes in this version + func IsDuplicateKeyError(err error) bool + func IsNoFoundError(err error) bool + func OperatorErr(db *gorm.DB) (rows int64, err error) + func RegisterCallbacks(db *gorm.DB) + func WrapErr(err error) error + type Client struct + DB *gorm.DB + func NewClient(cfg *Config) (c *Client, err error) + type Config struct + Database string + DisableErrorHook bool + Host string + LogConfig *sql.LogConfig + MaxIdleConn int + MaxIdleTimeSec int + MaxOpenConn int + Password string + Port int + SlaveDatabase string + SlaveHost string + SlavePassword string + SlavePort int + SlaveUser string + User string