database

package
v0.0.0-...-d62a2a9 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverPostgresql = "postgresql"
	DriverMysql      = "mysql"
	DriverMongo      = "mongodb"
)

Variables

This section is empty.

Functions

func GetCache

func GetCache() gcache.Cache

func GetDB

func GetDB() *gorm.DB

GetDB @description: 获取数据库连接 @param: @author: GJing @email: gjing1st@gmail.com @date: 2022/4/6 22:38 @success:

func InitDB

func InitDB()

InitDB @description: 初始化数据库 @param: @author: GJing @email: gjing1st@gmail.com @date: 2022/4/6 22:37 @success:

func MysqlEmptyDsn

func MysqlEmptyDsn() string

MysqlEmptyDsn @description: mysql配置 @param: @author: GJing @email: guojing@tna.cn @date: 2022/10/26 18:15 @success:

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