dbtools

package
v0.0.0-...-f9e7125 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMysqlDb

func GetMysqlDb() (db *gorm.DB)

func Init

func Init()

Types

type MysqlConnectPool

type MysqlConnectPool struct {
}

* MysqlConnectiPool * 数据库连接操作库 * 基于gorm封装开发

func GetMysqlInstance

func GetMysqlInstance() *MysqlConnectPool

func (*MysqlConnectPool) GetMysqlPool

func (m *MysqlConnectPool) GetMysqlPool() *gorm.DB

* @fuc 对外获取数据库连接对象db

func (*MysqlConnectPool) InitMysqlPool

func (m *MysqlConnectPool) InitMysqlPool() (issucc bool)

* @fuc 初始化数据库连接(可在mail()适当位置调用)

Jump to

Keyboard shortcuts

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