db

package
v0.0.0-...-c4a0c28 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAndGet

func InitAndGet() *gorm.DB

Types

type Logger

type Logger struct{}

func (Logger) Error

func (l Logger) Error(ctx context.Context, s string, i ...interface{})

func (Logger) Info

func (l Logger) Info(ctx context.Context, s string, i ...interface{})

func (Logger) LogMode

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

func (Logger) Trace

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

func (Logger) Warn

func (l Logger) Warn(ctx context.Context, s string, i ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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