db

package
v0.0.0-...-2e22fb2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBFieldListFromStrunct

func GetDBFieldListFromStrunct(u interface{}, bLower1st bool) []string

func GetMysqlDB

func GetMysqlDB() *sql.DB

func GetRedis

func GetRedis() *redis.Client

func MysqlClose

func MysqlClose()

call `defer dbconn.MysqlClose()` in main()

func MysqlTest

func MysqlTest()

if the mysql server is down db.Exec will return an error "invalid connection" , and pool will be clear new connection will be created if the server is online again

func RedisClose

func RedisClose()

func RedisTest

func RedisTest()

Types

This section is empty.

Jump to

Keyboard shortcuts

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