mysql_driver

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MYSQL_DRIVER_CLASS_NAME        = "mysql.MySQLDriver"
	MYSQL_DRIVER_REGISTRATION_NAME = "mysql"
)
View Source
const SqlStateAccessError = "28000"

Variables

View Source
var MySqlNetworkErrorMessages = []string{
	"invalid connection",
	"bad connection",
	"broken pipe",
}

Functions

func ClearCaches

func ClearCaches()

Types

type MySQLDriver

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

func (*MySQLDriver) Open

func (d *MySQLDriver) Open(dsn string) (driver.Conn, error)

type MySQLDriverDialect

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

func NewMySQLDriverDialect

func NewMySQLDriverDialect() *MySQLDriverDialect

func (MySQLDriverDialect) GetAllowedOnConnectionMethodNames

func (m MySQLDriverDialect) GetAllowedOnConnectionMethodNames() []string

func (MySQLDriverDialect) IsClosed

func (m MySQLDriverDialect) IsClosed(conn driver.Conn) bool

func (MySQLDriverDialect) IsDialect

func (m MySQLDriverDialect) IsDialect(driver driver.Driver) bool

func (MySQLDriverDialect) IsDriverRegistered

func (m MySQLDriverDialect) IsDriverRegistered(drivers map[string]driver.Driver) bool

func (MySQLDriverDialect) IsLoginError

func (m MySQLDriverDialect) IsLoginError(err error) bool

func (MySQLDriverDialect) IsNetworkError

func (m MySQLDriverDialect) IsNetworkError(err error) bool

func (MySQLDriverDialect) PrepareDsn

func (m MySQLDriverDialect) PrepareDsn(properties map[string]string, hostInfo *host_info_util.HostInfo) string

func (MySQLDriverDialect) RegisterDriver

func (m MySQLDriverDialect) RegisterDriver()

type MySQLErrorHandler

type MySQLErrorHandler struct {
}

func (MySQLErrorHandler) IsLoginError

func (m MySQLErrorHandler) IsLoginError(err error) bool

func (MySQLErrorHandler) IsNetworkError

func (m MySQLErrorHandler) IsNetworkError(err error) bool

Jump to

Keyboard shortcuts

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