gdb

package
v0.0.0-...-39e3969 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gorm

func Gorm(args ...string) *gorm.DB

Types

type GormNewLogger

type GormNewLogger struct {
	logger.Config
	// contains filtered or unexported fields
}

func (GormNewLogger) Error

func (l GormNewLogger) Error(ctx context.Context, message string, fields ...interface{})

func (GormNewLogger) Info

func (l GormNewLogger) Info(ctx context.Context, message string, fields ...interface{})

func (*GormNewLogger) LogMode

func (l *GormNewLogger) LogMode(level logger.LogLevel) logger.Interface

func (GormNewLogger) Trace

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

func (GormNewLogger) Warn

func (l GormNewLogger) Warn(ctx context.Context, message string, fields ...interface{})

type Option

type Option struct {
	Username string       `yaml:"username"`
	Password string       `yaml:"password"`
	Url      string       `yaml:"url"`
	Extra    string       `yaml:"extra"`
	Logger   loggerConfig `yaml:"logger"`
}

type OrmStarter

type OrmStarter struct {
}

func (*OrmStarter) GetName

func (m *OrmStarter) GetName() string

func (*OrmStarter) Init

func (m *OrmStarter) Init(config *viper.Viper, starters abs.StarterList)

func (*OrmStarter) Instance

func (m *OrmStarter) Instance(args ...interface{}) interface{}

Jump to

Keyboard shortcuts

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