db

package
v0.0.0-...-5093eaa Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 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
Package settings is a generated GoMock package.
Package settings is a generated GoMock package.

Jump to

Keyboard shortcuts

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