Documentation ¶
Index ¶
- type Db
- type Mysql
- func (m *Mysql) BeginTx(ctx context.Context) (err error)
- func (m *Mysql) Close()
- func (m *Mysql) Commit() error
- func (m *Mysql) Count(sqlStr string, result interface{}) error
- func (m *Mysql) Exec(sqlStr string) (lastInsertId int64, rowsAffected int64, err error)
- func (m *Mysql) Hook() error
- func (m *Mysql) Query(sqlStr string, result interface{}) (err error)
- func (m *Mysql) QueryOne(sqlStr string, result interface{}) (err error)
- func (m *Mysql) Rollback() error
- type NextOrm
- func (n *NextOrm) BeginTx(ctx context.Context) Orm
- func (n *NextOrm) Commit() Orm
- func (n *NextOrm) Count(result interface{}) Orm
- func (n *NextOrm) Delete() Orm
- func (n *NextOrm) Error() error
- func (n *NextOrm) Exec(format string, data ...interface{}) Orm
- func (n *NextOrm) Find(result interface{}) Orm
- func (n *NextOrm) First(result interface{}) Orm
- func (n *NextOrm) Group(group string) Orm
- func (n *NextOrm) Having(format string, data ...interface{}) Orm
- func (n *NextOrm) Hook(action string, handler func()) Orm
- func (n *NextOrm) Join(join string, data ...interface{}) Orm
- func (n *NextOrm) Last(result interface{}) Orm
- func (n *NextOrm) LastInsertId() int64
- func (n *NextOrm) Limit(limit int64) Orm
- func (n *NextOrm) Model(model interface{}) Orm
- func (n *NextOrm) Offset(start int64) Orm
- func (n *NextOrm) Order(order string) Orm
- func (n *NextOrm) Rollback() Orm
- func (n *NextOrm) RowsAffected() int64
- func (n *NextOrm) SQL() string
- func (n *NextOrm) Select(field string) Orm
- func (n *NextOrm) Table(table string) Orm
- func (n *NextOrm) Update(model interface{}) Orm
- func (n *NextOrm) UpdateColumn(column string, value interface{}) Orm
- func (n *NextOrm) Updates(m map[string]interface{}) Orm
- func (n *NextOrm) Where(format string, data ...interface{}) Orm
- type Orm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db interface { Close() Exec(sql string) (lastInsertId int64, rowsAffected int64, err error) QueryOne(sql string, result interface{}) error Query(sql string, result interface{}) error Count(sql string, result interface{}) error BeginTx(ctx context.Context) (err error) Commit() error Rollback() error Hook() error }
type NextOrm ¶
type NextOrm struct {
// contains filtered or unexported fields
}
func (*NextOrm) LastInsertId ¶
func (*NextOrm) RowsAffected ¶
func (*NextOrm) UpdateColumn ¶
type Orm ¶
type Orm interface { Table(table string) Orm Model(model interface{}) Orm Select(field string) Orm Join(join string, data ...interface{}) Orm Where(format string, data ...interface{}) Orm Find(result interface{}) Orm First(result interface{}) Orm Last(result interface{}) Orm Count(result interface{}) Orm Group(group string) Orm Having(format string, data ...interface{}) Orm Offset(start int64) Orm Limit(limit int64) Orm Order(order string) Orm Delete() Orm Updates(map[string]interface{}) Orm Update(model interface{}) Orm UpdateColumn(column string, value interface{}) Orm Exec(format string, data ...interface{}) Orm LastInsertId() int64 RowsAffected() int64 BeginTx(ctx context.Context) Orm Commit() Orm Rollback() Orm SQL() string Hook(action string, handler func()) Orm Error() error }
func NewNextOrm ¶
Click to show internal directories.
Click to hide internal directories.