gorm_v2

package
v0.0.0-...-9f75418 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOneMysqlClient

func GetOneMysqlClient() (*gorm.DB, error)

获取一个 mysql 客户端

func GetOnePostgreSqlClient

func GetOnePostgreSqlClient() (*gorm.DB, error)

获取一个 postgresql 客户端

func GetOneSqlserverClient

func GetOneSqlserverClient() (*gorm.DB, error)

获取一个 sqlserver 客户端

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