Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyCallback ¶
Types ¶
type Callback ¶
type Callback interface { Name() string BeforeQuery(s *gorm.Scope) AfterQuery(s *gorm.Scope) BeforeRowQuery(s *gorm.Scope) AfterRowQuery(s *gorm.Scope) BeforeCreate(s *gorm.Scope) AfterCreate(s *gorm.Scope) BeforeUpdate(s *gorm.Scope) AfterUpdate(s *gorm.Scope) BeforeDelete(s *gorm.Scope) AfterDelete(s *gorm.Scope) }
func NewLoggerCallback ¶
func NewLoggerCallback(l *zap.Logger, options xsql.ConnectionOptions) Callback
func NewMetricCallback ¶
func NewMetricCallback(options xsql.ConnectionOptions, timerKey string) Callback
Click to show internal directories.
Click to hide internal directories.