database

package
v0.0.0-...-aeb1ad3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FiberStorage fiber.Storage
	RedisPool    *redis.Pool
)
View Source
var Database *sql.DB

Functions

func CloseDB

func CloseDB() error

func ConnectDB

func ConnectDB(
	host string,
	port uint16,
	user string,
	password string,
	dbname string,
	sslmode string,
) error

func DBMigrate

func DBMigrate(
	host string,
	port uint16,
	user string,
	password string,
	dbname string,
	sslmode string,
) (int, error)

func InitFiberRedisMemory

func InitFiberRedisMemory(
	host string,
	port uint16,
	username string,
	password string,
	database int,
)

func InitRedis

func InitRedis(
	host string,
	port uint16,
	username string,
	password string,
	database int,
)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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