Versions in this module Expand all Collapse all v1 v1.0.0 Apr 17, 2016 Changes in this version + const ER_SPECIFIC_ACCESS_DENIED_ERROR + const ER_SYNTAX_ERROR + const ER_USER_DENIED + var ErrNotConnected = errors.New("not connected") + func Distro(distro string) string + func FormatError(err error) string + func MySQLErrorCode(err error) uint16 + type Connection struct + func NewConnection(dsn string) *Connection + func (c *Connection) AtLeastVersion(minVersion string) (bool, error) + func (c *Connection) Close() + func (c *Connection) Connect() error + func (c *Connection) DB() *sql.DB + func (c *Connection) DSN() string + func (c *Connection) Exec(queries []string) error + func (c *Connection) GetGlobalVarNumber(varName string) float64 + func (c *Connection) GetGlobalVarString(varName string) string + func (c *Connection) Set(queries []Query) error + func (c *Connection) UTCOffset() (time.Duration, time.Duration, error) + func (c *Connection) Uptime() (uptime int64, err error) + type ConnectionFactory interface + Make func(dsn string) Connector + type Connector interface + AtLeastVersion func(string) (bool, error) + Close func() + Connect func() error + DB func() *sql.DB + DSN func() string + Exec func([]string) error + GetGlobalVarNumber func(varName string) float64 + GetGlobalVarString func(varName string) string + Set func([]Query) error + UTCOffset func() (time.Duration, time.Duration, error) + Uptime func() (uptime int64, err error) + type Query struct + Expect string + Set string + Verify string + type RealConnectionFactory struct + func (f *RealConnectionFactory) Make(dsn string) Connector