Documentation ¶
Index ¶
- type MysqlConn
- func (conn *MysqlConn) Close() error
- func (conn *MysqlConn) Exec(query string, args ...interface{}) (int64, int64, error)
- func (conn *MysqlConn) NewTx() (*MysqlTx, error)
- func (conn *MysqlConn) PrepareExec(query string, args ...interface{}) (int64, int64, error)
- func (conn *MysqlConn) Query(query string, args ...interface{}) ([]map[string]string, error)
- type MysqlTx
- func (tx *MysqlTx) Commit() error
- func (tx *MysqlTx) Exec(query string, args ...interface{}) (num int64, lastId int64, err error)
- func (tx *MysqlTx) PrepareExec(query string, args ...interface{}) (int64, int64, error)
- func (tx *MysqlTx) Query(query string, args ...interface{}) ([]map[string]string, error)
- func (tx *MysqlTx) RollBack()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlConn ¶
type MysqlConn struct { Host string Port string User string Pwd string DbName string // contains filtered or unexported fields }
func NewMysqlConn ¶
If you do not want to preselect a database, leave dbName empty thus, caller need select database before operation on table
func (*MysqlConn) PrepareExec ¶
Click to show internal directories.
Click to hide internal directories.