mysql

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormDb added in v1.6.5

func NewGormDb(source *MySqlDataSource) *gorm.DB

Types

type MySQLHealthIndicator added in v1.6.5

type MySQLHealthIndicator struct {
	// contains filtered or unexported fields
}

func NewMysqlHealthIndicator added in v1.6.5

func NewMysqlHealthIndicator(db *gorm.DB) *MySQLHealthIndicator

func (*MySQLHealthIndicator) Health added in v1.6.5

type MySqlDataSource

type MySqlDataSource struct {
	// contains filtered or unexported fields
}

func NewMysqlDataSource

func NewMysqlDataSource(configuration abstractions.IConfiguration) *MySqlDataSource

NewMysqlDataSource 初始化MySQL数据源

func (*MySqlDataSource) Close

func (datasource *MySqlDataSource) Close()

func (*MySqlDataSource) GetConnectionString

func (datasource *MySqlDataSource) GetConnectionString() string

func (*MySqlDataSource) GetName

func (datasource *MySqlDataSource) GetName() string

func (*MySqlDataSource) Open

func (datasource *MySqlDataSource) Open() (conn interface{}, put func(), err error)

func (*MySqlDataSource) Ping

func (datasource *MySqlDataSource) Ping() bool

Jump to

Keyboard shortcuts

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