Versions in this module Expand all Collapse all v1 v1.0.9 Apr 20, 2018 Changes in this version + var ErrBusyBuffer = errors.New("busy buffer") + var ErrCleartextPassword = errors.New(...) + var ErrInvalidConn = errors.New("invalid connection") + var ErrMalformPkt = errors.New("malformed packet") + var ErrNativePassword = errors.New("this user requires mysql native password authentication.") + var ErrNoTLS = errors.New("TLS requested but server does not support TLS") + var ErrOldPassword = errors.New(...) + var ErrOldProtocol = errors.New("MySQL server does not support required protocol 41+") + var ErrPktSync = errors.New("commands out of sync. You can't run this command now") + var ErrPktSyncMul = errors.New("commands out of sync. Did you run multiple statements at once?") + var ErrPktTooLarge = errors.New(...) + var ErrUnknownPlugin = errors.New("this authentication plugin is not supported") + func DeregisterLocalFile(filePath string) + func DeregisterReaderHandler(name string) + func DeregisterTLSConfig(key string) + func RegisterDial(net string, dial DialFunc) + func RegisterLocalFile(filePath string) + func RegisterReaderHandler(name string, handler func() io.Reader) + func RegisterTLSConfig(key string, config *tls.Config) error + func SetLogger(logger Logger) error + type Config struct + Addr string + AllowAllFiles bool + AllowCleartextPasswords bool + AllowNativePasswords bool + AllowOldPasswords bool + ClientFoundRows bool + Collation string + ColumnsWithAlias bool + DBName string + InterpolateParams bool + Loc *time.Location + MaxAllowedPacket int + MultiStatements bool + Net string + Params map[string]string + ParseTime bool + Passwd string + ReadTimeout time.Duration + RejectReadOnly bool + Strict bool + TLSConfig string + Timeout time.Duration + User string + WriteTimeout time.Duration + func ParseDSN(dsn string) (cfg *Config, err error) + func (cfg *Config) FormatDSN() string + type DialFunc func(addr string) (net.Conn, error) + type Logger interface + Print func(v ...interface{}) + type MySQLDriver struct + func (d MySQLDriver) Open(dsn string) (driver.Conn, error) + type MySQLError struct + Message string + Number uint16 + func (me *MySQLError) Error() string + type MySQLWarning struct + Code string + Level string + Message string + type MySQLWarnings []MySQLWarning + func (mws MySQLWarnings) Error() string + type NullTime struct + Time time.Time + Valid bool + func (nt *NullTime) Scan(value interface{}) (err error) + func (nt NullTime) Value() (driver.Value, error)