Documentation ¶
Index ¶
- type Mysql
- func (db *Mysql) Close() error
- func (db *Mysql) Query(sql string, args ...interface{}) (record.ActiveRecordList, error)
- func (db *Mysql) QueryFirst(sql string, args ...interface{}) (*record.ActiveRecord, error)
- func (db *Mysql) Stat() sql.DBStats
- func (db *Mysql) Update(sql string, args ...interface{}) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
func (*Mysql) Query ¶
func (db *Mysql) Query(sql string, args ...interface{}) (record.ActiveRecordList, error)
func (*Mysql) QueryFirst ¶
func (db *Mysql) QueryFirst(sql string, args ...interface{}) (*record.ActiveRecord, error)
Click to show internal directories.
Click to hide internal directories.