gorm

package
v0.0.0-...-0927df6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDbReadDriver

func GetDbReadDriver(sqlType string) (*gorm.DB, error)

func GetDbWriteDriver

func GetDbWriteDriver(sqlType string) (*gorm.DB, error)

Types

type OptionFunc

type OptionFunc func(log *logger)

type Options

type Options interface {
	// contains filtered or unexported methods
}

尝试从外部重写内部相关的格式化变量

func SetErrStrFormat

func SetErrStrFormat(format string) Options

func SetInfoStrFormat

func SetInfoStrFormat(format string) Options

定义 6 个函数修改内部变量

func SetTracErrStrFormat

func SetTracErrStrFormat(format string) Options

func SetTracWarnStrFormat

func SetTracWarnStrFormat(format string) Options

func SetTraceStrFormat

func SetTraceStrFormat(format string) Options

func SetWarnStrFormat

func SetWarnStrFormat(format string) Options

Jump to

Keyboard shortcuts

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