Documentation
¶
Index ¶
- type Logger
- func (gl Logger) Error(_ context.Context, s string, i ...interface{})
- func (gl Logger) Info(_ context.Context, s string, i ...interface{})
- func (gl Logger) LogMode(level gormLogger.LogLevel) gormLogger.Interface
- func (gl Logger) Trace(_ context.Context, begin time.Time, fc func() (string, int64), err error)
- func (gl Logger) Warn(_ context.Context, s string, i ...interface{})
- type MySQLDialector
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { IgnoreRecordNotFoundError bool SlowThreshold time.Duration // contains filtered or unexported fields }
func (Logger) LogMode ¶
func (gl Logger) LogMode(level gormLogger.LogLevel) gormLogger.Interface
type MySQLDialector ¶
func (MySQLDialector) Explain ¶
func (x MySQLDialector) Explain(sql string, vars ...interface{}) string
type Repository ¶
func New ¶ added in v1.2.0
func New(config *repository.Config, dbLogger logger.Logger) (*Repository, error)
func (*Repository) Ctx ¶
func (r *Repository) Ctx(ctx context.Context) *Repository
Click to show internal directories.
Click to hide internal directories.