Documentation
¶
Index ¶
- type Repository
- func (_m *Repository) Begin() *gorm.DB
- func (_m *Repository) Commit(db *gorm.DB) *gorm.DB
- func (_m *Repository) Create(ent interface{}) error
- func (_m *Repository) CreateTransaction(db *gorm.DB, ent interface{}) error
- func (_m *Repository) Find(filters map[string]interface{}, ent interface{}) error
- func (_m *Repository) First(filters map[string]interface{}, ent interface{}) error
- func (_m *Repository) IsErrorRecordNotFound(err error) bool
- func (_m *Repository) Last(filters map[string]interface{}, ent interface{}) error
- func (_m *Repository) List(tableName string, offset int64, limit int64, filters interface{}, ...) (*utils.Pagination, error)
- func (_m *Repository) Raw(ent interface{}, sql string, value ...interface{}) error
- func (_m *Repository) Rollback(db *gorm.DB) *gorm.DB
- func (_m *Repository) RollbackTo(db *gorm.DB, input string) *gorm.DB
- func (_m *Repository) SavePoint(db *gorm.DB, input string) *gorm.DB
- func (_m *Repository) Update(filters map[string]interface{}, ent interface{}) error
- func (_m *Repository) UpdateTransaction(db *gorm.DB, filters map[string]interface{}, ent interface{}) error
- func (_m *Repository) Upsert(tableName string, filters map[string]interface{}, ent interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) Begin ¶
func (_m *Repository) Begin() *gorm.DB
Begin provides a mock function with given fields:
func (*Repository) Commit ¶
func (_m *Repository) Commit(db *gorm.DB) *gorm.DB
Commit provides a mock function with given fields: db
func (*Repository) Create ¶
func (_m *Repository) Create(ent interface{}) error
Create provides a mock function with given fields: ent
func (*Repository) CreateTransaction ¶
func (_m *Repository) CreateTransaction(db *gorm.DB, ent interface{}) error
CreateTransaction provides a mock function with given fields: db, ent
func (*Repository) Find ¶
func (_m *Repository) Find(filters map[string]interface{}, ent interface{}) error
Find provides a mock function with given fields: filters, ent
func (*Repository) First ¶
func (_m *Repository) First(filters map[string]interface{}, ent interface{}) error
First provides a mock function with given fields: filters, ent
func (*Repository) IsErrorRecordNotFound ¶
func (_m *Repository) IsErrorRecordNotFound(err error) bool
IsErrorRecordNotFound provides a mock function with given fields: err
func (*Repository) Last ¶
func (_m *Repository) Last(filters map[string]interface{}, ent interface{}) error
Last provides a mock function with given fields: filters, ent
func (*Repository) List ¶
func (_m *Repository) List(tableName string, offset int64, limit int64, filters interface{}, order interface{}, ent interface{}) (*utils.Pagination, error)
List provides a mock function with given fields: tableName, offset, limit, filters, order, ent
func (*Repository) Raw ¶
func (_m *Repository) Raw(ent interface{}, sql string, value ...interface{}) error
Raw provides a mock function with given fields: ent, sql, value
func (*Repository) Rollback ¶
func (_m *Repository) Rollback(db *gorm.DB) *gorm.DB
Rollback provides a mock function with given fields: db
func (*Repository) RollbackTo ¶
RollbackTo provides a mock function with given fields: db, input
func (*Repository) Update ¶
func (_m *Repository) Update(filters map[string]interface{}, ent interface{}) error
Update provides a mock function with given fields: filters, ent
func (*Repository) UpdateTransaction ¶
func (_m *Repository) UpdateTransaction(db *gorm.DB, filters map[string]interface{}, ent interface{}) error
UpdateTransaction provides a mock function with given fields: db, filters, ent