mysqlFunc

package
v0.0.0-...-86e89f0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlConf

type MysqlConf struct {
	Username string
	Password string
	Host     string
	Port     string
	Database string
}

func NewMysqlConf

func NewMysqlConf() *MysqlConf

func (*MysqlConf) Init

func (m *MysqlConf) Init()

type MysqlHelper

type MysqlHelper struct {
	DB *gorm.DB
}

func NewMysqlHelper

func NewMysqlHelper(conf *MysqlConf) (*MysqlHelper, error)

func (*MysqlHelper) Conn

func (m *MysqlHelper) Conn(conf *MysqlConf) error

Jump to

Keyboard shortcuts

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