Documentation ¶
Index ¶
- type Conn
- func (c *Conn) Begin() error
- func (c *Conn) Close() error
- func (c *Conn) Commit() error
- func (c *Conn) Connect(dbHost *backend.DBHost, db string) error
- func (c *Conn) Execute(command string, args []interface{}) (*mysql.Result, error)
- func (c *Conn) FieldList(table string, wildcard string) ([]*mysql.Field, error)
- func (c *Conn) GetAddr() string
- func (c *Conn) GetCharset() string
- func (c *Conn) GetConnectionID() uint32
- func (c *Conn) GetDB() string
- func (c *Conn) IsAutoCommit() bool
- func (c *Conn) IsClosed() bool
- func (c *Conn) IsInTransaction() bool
- func (c *Conn) Ping() error
- func (c *Conn) Prepare(query string) (*mysql.Stmt, error)
- func (c *Conn) Query(query string) (*mysql.Result, error)
- func (c *Conn) Reconnect() error
- func (c *Conn) ReturnConnection()
- func (c *Conn) Rollback() error
- func (c *Conn) SetAutoCommit(autocommit bool) error
- func (c *Conn) SetCharset(charset string) error
- func (c *Conn) SetConnectionID(id uint32)
- func (c *Conn) UseDB(dbName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn proxy <-> mysql server
func (*Conn) GetConnectionID ¶
GetConnectionID get connection id
func (*Conn) ReturnConnection ¶
func (c *Conn) ReturnConnection()
ReturnConnection give back connection.
func (*Conn) SetAutoCommit ¶
SetAutoCommit set autocommit.
func (*Conn) SetConnectionID ¶
SetConnectionID set connection id
Click to show internal directories.
Click to hide internal directories.