Documentation ¶
Overview ¶
See documentation of mymysql/native for details/
Index ¶
- func New(proto, laddr, raddr, user, passwd string, db ...string) mysql.Conn
- type Conn
- func (c *Conn) Begin() (mysql.Transaction, error)
- func (c *Conn) Close() error
- func (c *Conn) Connect() error
- func (c *Conn) Ping() error
- func (c *Conn) Prepare(sql string) (mysql.Stmt, error)
- func (c *Conn) Query(sql string, params ...interface{}) ([]mysql.Row, mysql.Result, error)
- func (c *Conn) Reconnect() error
- func (c *Conn) Start(sql string, params ...interface{}) (mysql.Result, error)
- func (c *Conn) Use(dbname string) error
- type Result
- type Stmt
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
func (*Conn) Begin ¶
func (c *Conn) Begin() (mysql.Transaction, error)
Begins a new transaction. No any other thread can send command on this connection until Commit or Rollback will be called.
type Transaction ¶
type Transaction struct { *Conn // contains filtered or unexported fields }
func (*Transaction) Commit ¶
func (tr *Transaction) Commit() error
func (*Transaction) Rollback ¶
func (tr *Transaction) Rollback() error
Click to show internal directories.
Click to hide internal directories.