Versions in this module Expand all Collapse all v1 v1.1.2 Oct 27, 2020 v1.1.1 Oct 27, 2020 Changes in this version + func NewClientTLSConfig(caPem, certPem, keyPem []byte, insecureSkipVerify bool, serverName string) *tls.Config + type Conn struct + func Connect(addr string, user string, password string, dbName string, ...) (*Conn, error) + func (c *Conn) Begin() error + func (c *Conn) Close() error + func (c *Conn) Commit() error + func (c *Conn) Execute(command string, args ...interface{}) (*Result, error) + func (c *Conn) FieldList(table string, wildcard string) ([]*Field, error) + func (c *Conn) GetCharset() string + func (c *Conn) GetConnectionID() uint32 + func (c *Conn) GetDB() string + func (c *Conn) HandleErrorPacket(data []byte) error + func (c *Conn) HandleOKPacket(data []byte) *Result + func (c *Conn) IsAutoCommit() bool + func (c *Conn) IsInTransaction() bool + func (c *Conn) Ping() error + func (c *Conn) Prepare(query string) (*Stmt, error) + func (c *Conn) ReadOKPacket() (*Result, error) + func (c *Conn) Rollback() error + func (c *Conn) SetAutoCommit() error + func (c *Conn) SetCharset(charset string) error + func (c *Conn) SetTLSConfig(config *tls.Config) + func (c *Conn) UseDB(dbName string) error + func (c *Conn) UseSSL(insecureSkipVerify bool) + type Stmt struct + func (s *Stmt) Close() error + func (s *Stmt) ColumnNum() int + func (s *Stmt) Execute(args ...interface{}) (*Result, error) + func (s *Stmt) ParamNum() int