db

package
v0.0.0-...-7554c50 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisClient *_redis.Client

RedisClient ...

Functions

func ConnectDB

func ConnectDB(dataSourceName string) (*gorp.DbMap, error)

ConnectDB ...

func GetDB

func GetDB() *gorp.DbMap

GetDB ...

func GetRedis

func GetRedis() *_redis.Client

GetRedis ...

func Init

func Init()

Init ...

func InitRedis

func InitRedis(selectDB ...int)

InitRedis ...

Types

type DB

type DB struct {
	*sql.DB
}

DB ...

Jump to

Keyboard shortcuts

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