database

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(config *config.Database, logger *zap.Logger) (domain.Repository, error)

Types

type GormLoggerAdapter

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

func (*GormLoggerAdapter) Error

func (g *GormLoggerAdapter) Error(ctx context.Context, s string, i ...interface{})

func (*GormLoggerAdapter) Info

func (g *GormLoggerAdapter) Info(ctx context.Context, s string, i ...interface{})

func (*GormLoggerAdapter) LogMode

func (g *GormLoggerAdapter) LogMode(level logger.LogLevel) logger.Interface

func (*GormLoggerAdapter) Trace

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

func (*GormLoggerAdapter) Warn

func (g *GormLoggerAdapter) 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