package thrsafe
import "github.com/ziutek/mymysql/thrsafe"
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
- func (res *Result) End() error
- func (res *Result) GetRow() (mysql.Row, error)
- func (res *Result) GetRows() ([]mysql.Row, error)
- func (res *Result) NextResult() (mysql.Result, error)
- type Stmt
- func (stmt *Stmt) Delete() error
- func (stmt *Stmt) Exec(params ...interface{}) ([]mysql.Row, mysql.Result, error)
- func (stmt *Stmt) Reset() error
- func (stmt *Stmt) Run(params ...interface{}) (mysql.Result, error)
- func (stmt *Stmt) SendLongData(pnum int, data interface{}, pkt_size int) error
- type Transaction
Functions ¶
func New ¶
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.
func (*Conn) Close ¶
func (*Conn) Connect ¶
func (*Conn) Ping ¶
func (*Conn) Prepare ¶
func (*Conn) Query ¶
func (*Conn) Reconnect ¶
func (*Conn) Start ¶
func (*Conn) Use ¶
type Result ¶
func (*Result) End ¶
func (*Result) GetRow ¶
func (*Result) GetRows ¶
func (*Result) NextResult ¶
type Stmt ¶
func (*Stmt) Delete ¶
func (*Stmt) Exec ¶
func (*Stmt) Reset ¶
func (*Stmt) Run ¶
func (*Stmt) SendLongData ¶
type Transaction ¶
type Transaction struct { *Conn // contains filtered or unexported fields }
func (*Transaction) Commit ¶
func (tr *Transaction) Commit() error
func (*Transaction) Do ¶
func (tr *Transaction) Do(st mysql.Stmt) mysql.Stmt
func (*Transaction) Rollback ¶
func (tr *Transaction) Rollback() error
Source Files ¶
- Version
- v0.4.1
- Published
- Jan 13, 2012
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 45 minutes ago –
Tools for package owners.