db

package
v0.0.0-...-96df10f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 9 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 GetGormDB

func GetGormDB() *gorm.DB

func GetRedis

func GetRedis() *_redis.Client

GetRedis ...

func Init

func Init()

Init ...

func InitGorm

func InitGorm()

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