Documentation ¶
Index ¶
- type DB
- func (_m *DB) Begin() (orm.Transaction, error)
- func (_m *DB) Count(count *int64) error
- func (_m *DB) Create(value interface{}) error
- func (_m *DB) Delete(value interface{}, conds ...interface{}) error
- func (_m *DB) Distinct(args ...interface{}) orm.Query
- func (_m *DB) Exec(sql string, values ...interface{}) error
- func (_m *DB) Find(dest interface{}, conds ...interface{}) error
- func (_m *DB) First(dest interface{}) error
- func (_m *DB) FirstOrCreate(dest interface{}, conds ...interface{}) error
- func (_m *DB) ForceDelete(value interface{}, conds ...interface{}) error
- func (_m *DB) Get(dest interface{}) error
- func (_m *DB) Group(name string) orm.Query
- func (_m *DB) Having(query interface{}, args ...interface{}) orm.Query
- func (_m *DB) Join(query string, args ...interface{}) orm.Query
- func (_m *DB) Limit(limit int) orm.Query
- func (_m *DB) Model(value interface{}) orm.Query
- func (_m *DB) Offset(offset int) orm.Query
- func (_m *DB) OrWhere(query interface{}, args ...interface{}) orm.Query
- func (_m *DB) Order(value interface{}) orm.Query
- func (_m *DB) Pluck(column string, dest interface{}) error
- func (_m *DB) Raw(sql string, values ...interface{}) orm.Query
- func (_m *DB) Save(value interface{}) error
- func (_m *DB) Scan(dest interface{}) error
- func (_m *DB) Scopes(funcs ...func(orm.Query) orm.Query) orm.Query
- func (_m *DB) Select(query interface{}, args ...interface{}) orm.Query
- func (_m *DB) Table(name string, args ...interface{}) orm.Query
- func (_m *DB) Update(column string, value interface{}) error
- func (_m *DB) Updates(values interface{}) error
- func (_m *DB) Where(query interface{}, args ...interface{}) orm.Query
- func (_m *DB) WithTrashed() orm.Query
- type Orm
- type Transaction
- func (_m *Transaction) Commit() error
- func (_m *Transaction) Count(count *int64) error
- func (_m *Transaction) Create(value interface{}) error
- func (_m *Transaction) Delete(value interface{}, conds ...interface{}) error
- func (_m *Transaction) Distinct(args ...interface{}) orm.Query
- func (_m *Transaction) Exec(sql string, values ...interface{}) error
- func (_m *Transaction) Find(dest interface{}, conds ...interface{}) error
- func (_m *Transaction) First(dest interface{}) error
- func (_m *Transaction) FirstOrCreate(dest interface{}, conds ...interface{}) error
- func (_m *Transaction) ForceDelete(value interface{}, conds ...interface{}) error
- func (_m *Transaction) Get(dest interface{}) error
- func (_m *Transaction) Group(name string) orm.Query
- func (_m *Transaction) Having(query interface{}, args ...interface{}) orm.Query
- func (_m *Transaction) Join(query string, args ...interface{}) orm.Query
- func (_m *Transaction) Limit(limit int) orm.Query
- func (_m *Transaction) Model(value interface{}) orm.Query
- func (_m *Transaction) Offset(offset int) orm.Query
- func (_m *Transaction) OrWhere(query interface{}, args ...interface{}) orm.Query
- func (_m *Transaction) Order(value interface{}) orm.Query
- func (_m *Transaction) Pluck(column string, dest interface{}) error
- func (_m *Transaction) Raw(sql string, values ...interface{}) orm.Query
- func (_m *Transaction) Rollback() error
- func (_m *Transaction) Save(value interface{}) error
- func (_m *Transaction) Scan(dest interface{}) error
- func (_m *Transaction) Scopes(funcs ...func(orm.Query) orm.Query) orm.Query
- func (_m *Transaction) Select(query interface{}, args ...interface{}) orm.Query
- func (_m *Transaction) Table(name string, args ...interface{}) orm.Query
- func (_m *Transaction) Update(column string, value interface{}) error
- func (_m *Transaction) Updates(values interface{}) error
- func (_m *Transaction) Where(query interface{}, args ...interface{}) orm.Query
- func (_m *Transaction) WithTrashed() orm.Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is an autogenerated mock type for the DB type
func NewDB ¶
func NewDB(t mockConstructorTestingTNewDB) *DB
NewDB creates a new instance of DB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DB) Begin ¶
func (_m *DB) Begin() (orm.Transaction, error)
Begin provides a mock function with given fields:
func (*DB) FirstOrCreate ¶
FirstOrCreate provides a mock function with given fields: dest, conds
func (*DB) ForceDelete ¶
ForceDelete provides a mock function with given fields: value, conds
func (*DB) WithTrashed ¶
WithTrashed provides a mock function with given fields:
type Orm ¶
Orm is an autogenerated mock type for the Orm type
func NewOrm ¶
func NewOrm(t mockConstructorTestingTNewOrm) *Orm
NewOrm creates a new instance of Orm. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Orm) Connection ¶
Connection provides a mock function with given fields: name
func (*Orm) Transaction ¶
func (_m *Orm) Transaction(txFunc func(orm.Transaction) error) error
Transaction provides a mock function with given fields: txFunc
type Transaction ¶
Transaction is an autogenerated mock type for the Transaction type
func NewTransaction ¶
func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction
NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Transaction) Commit ¶
func (_m *Transaction) Commit() error
Commit provides a mock function with given fields:
func (*Transaction) Count ¶
func (_m *Transaction) Count(count *int64) error
Count provides a mock function with given fields: count
func (*Transaction) Create ¶
func (_m *Transaction) Create(value interface{}) error
Create provides a mock function with given fields: value
func (*Transaction) Delete ¶
func (_m *Transaction) Delete(value interface{}, conds ...interface{}) error
Delete provides a mock function with given fields: value, conds
func (*Transaction) Distinct ¶
func (_m *Transaction) Distinct(args ...interface{}) orm.Query
Distinct provides a mock function with given fields: args
func (*Transaction) Exec ¶
func (_m *Transaction) Exec(sql string, values ...interface{}) error
Exec provides a mock function with given fields: sql, values
func (*Transaction) Find ¶
func (_m *Transaction) Find(dest interface{}, conds ...interface{}) error
Find provides a mock function with given fields: dest, conds
func (*Transaction) First ¶
func (_m *Transaction) First(dest interface{}) error
First provides a mock function with given fields: dest
func (*Transaction) FirstOrCreate ¶
func (_m *Transaction) FirstOrCreate(dest interface{}, conds ...interface{}) error
FirstOrCreate provides a mock function with given fields: dest, conds
func (*Transaction) ForceDelete ¶
func (_m *Transaction) ForceDelete(value interface{}, conds ...interface{}) error
ForceDelete provides a mock function with given fields: value, conds
func (*Transaction) Get ¶
func (_m *Transaction) Get(dest interface{}) error
Get provides a mock function with given fields: dest
func (*Transaction) Group ¶
func (_m *Transaction) Group(name string) orm.Query
Group provides a mock function with given fields: name
func (*Transaction) Having ¶
func (_m *Transaction) Having(query interface{}, args ...interface{}) orm.Query
Having provides a mock function with given fields: query, args
func (*Transaction) Join ¶
func (_m *Transaction) Join(query string, args ...interface{}) orm.Query
Join provides a mock function with given fields: query, args
func (*Transaction) Limit ¶
func (_m *Transaction) Limit(limit int) orm.Query
Limit provides a mock function with given fields: limit
func (*Transaction) Model ¶
func (_m *Transaction) Model(value interface{}) orm.Query
Model provides a mock function with given fields: value
func (*Transaction) Offset ¶
func (_m *Transaction) Offset(offset int) orm.Query
Offset provides a mock function with given fields: offset
func (*Transaction) OrWhere ¶
func (_m *Transaction) OrWhere(query interface{}, args ...interface{}) orm.Query
OrWhere provides a mock function with given fields: query, args
func (*Transaction) Order ¶
func (_m *Transaction) Order(value interface{}) orm.Query
Order provides a mock function with given fields: value
func (*Transaction) Pluck ¶
func (_m *Transaction) Pluck(column string, dest interface{}) error
Pluck provides a mock function with given fields: column, dest
func (*Transaction) Raw ¶
func (_m *Transaction) Raw(sql string, values ...interface{}) orm.Query
Raw provides a mock function with given fields: sql, values
func (*Transaction) Rollback ¶
func (_m *Transaction) Rollback() error
Rollback provides a mock function with given fields:
func (*Transaction) Save ¶
func (_m *Transaction) Save(value interface{}) error
Save provides a mock function with given fields: value
func (*Transaction) Scan ¶
func (_m *Transaction) Scan(dest interface{}) error
Scan provides a mock function with given fields: dest
func (*Transaction) Select ¶
func (_m *Transaction) Select(query interface{}, args ...interface{}) orm.Query
Select provides a mock function with given fields: query, args
func (*Transaction) Table ¶
func (_m *Transaction) Table(name string, args ...interface{}) orm.Query
Table provides a mock function with given fields: name, args
func (*Transaction) Update ¶
func (_m *Transaction) Update(column string, value interface{}) error
Update provides a mock function with given fields: column, value
func (*Transaction) Updates ¶
func (_m *Transaction) Updates(values interface{}) error
Updates provides a mock function with given fields: values
func (*Transaction) Where ¶
func (_m *Transaction) Where(query interface{}, args ...interface{}) orm.Query
Where provides a mock function with given fields: query, args
func (*Transaction) WithTrashed ¶
func (_m *Transaction) WithTrashed() orm.Query
WithTrashed provides a mock function with given fields: