database

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatabase

func InitDatabase(cfg *config.Config) (*gorm.DB, error)

Initializes the database with standard configuration

Types

type GormLogger

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

func NewGormLogger

func NewGormLogger() *GormLogger

func (*GormLogger) Error

func (gl *GormLogger) Error(ctx context.Context, m string, v ...interface{})

func (*GormLogger) Info

func (gl *GormLogger) Info(ctx context.Context, m string, v ...interface{})

func (*GormLogger) LogMode

func (*GormLogger) Trace

func (gl *GormLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)

func (*GormLogger) Warn

func (gl *GormLogger) Warn(ctx context.Context, m string, v ...interface{})

Jump to

Keyboard shortcuts

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