db

package
v0.0.0-...-175a4df Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instance *gorm.DB

Functions

func New

func New(driver, dsn string) (*gorm.DB, error)

func NewInstance

func NewInstance(driver, dsn string) (err error)

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (*Logger) Error

func (l *Logger) Error(_ context.Context, msg string, val ...interface{})

func (*Logger) Info

func (l *Logger) Info(_ context.Context, msg string, val ...interface{})

func (*Logger) LogMode

func (l *Logger) LogMode(logger.LogLevel) logger.Interface

func (*Logger) Trace

func (l *Logger) Trace(_ context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)

func (*Logger) Warn

func (l *Logger) Warn(_ context.Context, msg string, val ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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