Documentation ¶
Index ¶
- func Create(bean interface{}) error
- func Initialize(cfg *config.MySQL) error
- func Tx(fc func(tx *gorm.DB) error, opts ...*sql.TxOptions) error
- type Logger
- func (l *Logger) Error(_ context.Context, format string, args ...interface{})
- func (l *Logger) Info(_ context.Context, format string, args ...interface{})
- func (l *Logger) LogMode(level logger.LogLevel) logger.Interface
- func (l *Logger) Trace(_ context.Context, _ time.Time, fc func() (string, int64), err error)
- func (l *Logger) Warn(_ context.Context, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is the customized logger for gorm
Click to show internal directories.
Click to hide internal directories.