mysql

package
v0.0.0-...-f56a457 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Classic

func Classic(opts *orm.Options) *gorm.DB

old gorm v1

func Default

func Default(opts *orm.Options) *gormV2.DB

默认 gorm v2

func NewMySQL

func NewMySQL(opts *orm.Options) *gorm.DB

NewMySQL new v1 and retry connection when has error.

func NewMySQLv2

func NewMySQLv2(opts *orm.Options) *gormV2.DB

gorm v2

Types

type Client

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

func NewClient

func NewClient(opts *orm.Options) *Client

func (*Client) Close

func (m *Client) Close() error

func (*Client) DB

func (m *Client) DB() *gormV2.DB

v2

func (*Client) DBClassic

func (m *Client) DBClassic() *gorm.DB

v1

Jump to

Keyboard shortcuts

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