Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SqlLoggerMid ¶
type SqlLoggerMid struct { // 日志记录,sql,影响行数,执行时间(毫秒) LogFunc func(sql string, rows int, milliSeconds int) }
func NewSqlLoggerMidBuilder ¶
func NewSqlLoggerMidBuilder(logFunc func(sql string, rows int, seconds int)) *SqlLoggerMid
func (*SqlLoggerMid) Initialize ¶
func (l *SqlLoggerMid) Initialize(db *gorm.DB) error
func (*SqlLoggerMid) Name ¶
func (l *SqlLoggerMid) Name() string
Click to show internal directories.
Click to hide internal directories.