data

package
v0.0.0-...-ac8a210 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(cfg *config.Config, logger *zap.Logger) (*connection, error)

Types

type DataLogger

type DataLogger struct {
	Logger   *zap.Logger
	LogLevel gormlogger.LogLevel
}

func (DataLogger) Error

func (l DataLogger) Error(ctx context.Context, message string, args ...interface{})

func (DataLogger) Info

func (l DataLogger) Info(ctx context.Context, message string, args ...interface{})

func (DataLogger) LogMode

func (DataLogger) Trace

func (l DataLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)

func (DataLogger) Warn

func (l DataLogger) Warn(ctx context.Context, message string, args ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL