Versions in this module Expand all Collapse all v1 v1.0.2 May 10, 2023 Changes in this version + func ContextFromDB(db *gorm.DB) context.Context + func Open(dialect, source string, opts ...Option) (*gorm.DB, error) + func WithCallbacks(db *gorm.DB, opts ...Option) *gorm.DB + func WithContext(ctx context.Context, db *gorm.DB) *gorm.DB + type Option func(*config) + func WithAnalytics(on bool) Option + func WithAnalyticsRate(rate float64) Option + func WithCustomTag(tag string, tagFn func(scope *gorm.Scope) interface{}) Option + func WithErrorCheck(fn func(err error) bool) Option + func WithServiceName(name string) Option