Documentation
¶
Index ¶
- func NewMySQL(c Config) (*gorm.DB, error)
- func NewPostgreSQL(c Config) (*gorm.DB, error)
- type Config
- type CustomLogger
- func (l *CustomLogger) Error(ctx context.Context, msg string, data ...any)
- func (l *CustomLogger) Info(ctx context.Context, msg string, data ...any)
- func (l *CustomLogger) LogMode(lev logger.LogLevel) logger.Interface
- func (l *CustomLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (l *CustomLogger) Warn(ctx context.Context, msg string, data ...any)
- type DB
- type Logger
- type Model
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomLogger ¶
type CustomLogger struct {
// contains filtered or unexported fields
}
func NewCustomLogger ¶
func NewCustomLogger(logger *xlogger.Logger) *CustomLogger
func (*CustomLogger) Error ¶
func (l *CustomLogger) Error(ctx context.Context, msg string, data ...any)
func (*CustomLogger) Info ¶
func (l *CustomLogger) Info(ctx context.Context, msg string, data ...any)
Click to show internal directories.
Click to hide internal directories.