Documentation ¶
Index ¶
- type Conn
- 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) UseDB(dbName string) error
- type Stmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func Connect ¶
Connect to a MySQL server, addr can be ip:port, or a unix socket domain like /var/sock.
func (*Conn) GetCharset ¶
func (*Conn) GetConnectionID ¶
func (*Conn) HandleErrorPacket ¶
func (*Conn) HandleOKPacket ¶
func (*Conn) IsAutoCommit ¶
func (*Conn) IsInTransaction ¶
func (*Conn) ReadOKPacket ¶
func (*Conn) SetAutoCommit ¶
func (*Conn) SetCharset ¶
Click to show internal directories.
Click to hide internal directories.