package
module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Jun 25, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
单例,开启事务时用这个db(models.db)db.Begin(),db.Rollback(),db.Commit()
func NewDB(conf *config.MysqlCnfDto)
连接数据库,创建表
Source Files
¶
Click to show internal directories.
Click to hide internal directories.