db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: LGPL-2.1 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvDBLogLevel

func ConvDBLogLevel(level string) logger.LogLevel

func GormDB

func GormDB() *gorm.DB

func GormFirst

func GormFirst(record, query interface{}, args ...interface{}) (bool, error)

func SetDbDatabase

func SetDbDatabase(db string)

func SetDbHost

func SetDbHost(hostStr string)

func SetDbLogLevel

func SetDbLogLevel(level string)

func SetDbPassword

func SetDbPassword(passWord string)

func SetDbPort

func SetDbPort(Port uint16)

func SetDbUserName

func SetDbUserName(name string)

func XormDb

func XormDb() *xorm.Engine

Types

This section is empty.

Jump to

Keyboard shortcuts

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