db

package
v0.0.0-...-cbc6a02 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() *redis.Client

func GetSqlxDB

func GetSqlxDB() *sqlx.DB

func InitRedis

func InitRedis(uri string, db int, password string) error

func InitSqlxDB

func InitSqlxDB(host, username, password, database string) error

Types

type Executor

type Executor interface {
	Exec(query string, args ...interface{}) (sql.Result, error)
}

Jump to

Keyboard shortcuts

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