Documentation
¶
Index ¶
- Constants
- Variables
- func ClearCaches()
- type MySQLDriver
- type MySQLDriverDialect
- func (m MySQLDriverDialect) GetAllowedOnConnectionMethodNames() []string
- func (m MySQLDriverDialect) IsClosed(conn driver.Conn) bool
- func (m MySQLDriverDialect) IsDialect(driver driver.Driver) bool
- func (m MySQLDriverDialect) IsDriverRegistered(drivers map[string]driver.Driver) bool
- func (m MySQLDriverDialect) IsLoginError(err error) bool
- func (m MySQLDriverDialect) IsNetworkError(err error) bool
- func (m MySQLDriverDialect) PrepareDsn(properties map[string]string, hostInfo *host_info_util.HostInfo) string
- func (m MySQLDriverDialect) RegisterDriver()
- type MySQLErrorHandler
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
}
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) 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
Click to show internal directories.
Click to hide internal directories.