Documentation ¶
Index ¶
Constants ¶
View Source
const ( DriverPostgresql = "postgresql" DriverMysql = "mysql" DriverMongo = "mongodb" )
Variables ¶
This section is empty.
Functions ¶
func GetDB ¶
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.
Click to show internal directories.
Click to hide internal directories.