mysql

package
v0.0.0-...-6b52b4a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cfg *confer.Mysql) (err error)

Init 初始化mysql连接池

func SqlMigrate

func SqlMigrate() (err error)

Types

type Connection

type Connection struct {
	*gorm.DB
	IsRead bool
}

type DaoMysql

type DaoMysql struct {
	TableName string
}

func NewDaoMysql

func NewDaoMysql() *DaoMysql

func (*DaoMysql) GetOrm

func (p *DaoMysql) GetOrm() Connection

func (*DaoMysql) GetReadOrm

func (p *DaoMysql) GetReadOrm() Connection

func (*DaoMysql) GetWriteOrm

func (p *DaoMysql) GetWriteOrm() Connection

Jump to

Keyboard shortcuts

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