Documentation
¶
Index ¶
- type Builder
- func (_m *Builder) Beginx() (*sqlx.Tx, error)
- func (_m *Builder) EXPECT() *Builder_Expecter
- func (_m *Builder) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (_m *Builder) Explain(_a0 string, args ...interface{}) string
- func (_m *Builder) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (_m *Builder) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
- func (_m *Builder) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- type Builder_Beginx_Call
- type Builder_ExecContext_Call
- func (_c *Builder_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Builder_ExecContext_Call
- func (_c *Builder_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Builder_ExecContext_Call
- func (_c *Builder_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Builder_ExecContext_Call
- type Builder_Expecter
- func (_e *Builder_Expecter) Beginx() *Builder_Beginx_Call
- func (_e *Builder_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Builder_ExecContext_Call
- func (_e *Builder_Expecter) Explain(_a0 interface{}, args ...interface{}) *Builder_Explain_Call
- func (_e *Builder_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Builder_GetContext_Call
- func (_e *Builder_Expecter) QueryxContext(ctx interface{}, query interface{}, args ...interface{}) *Builder_QueryxContext_Call
- func (_e *Builder_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Builder_SelectContext_Call
- type Builder_Explain_Call
- type Builder_GetContext_Call
- type Builder_QueryxContext_Call
- func (_c *Builder_QueryxContext_Call) Return(_a0 *sqlx.Rows, _a1 error) *Builder_QueryxContext_Call
- func (_c *Builder_QueryxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Builder_QueryxContext_Call
- func (_c *Builder_QueryxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *Builder_QueryxContext_Call
- type Builder_SelectContext_Call
- func (_c *Builder_SelectContext_Call) Return(_a0 error) *Builder_SelectContext_Call
- func (_c *Builder_SelectContext_Call) Run(...) *Builder_SelectContext_Call
- func (_c *Builder_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Builder_SelectContext_Call
- type CommonBuilder
- func (_m *CommonBuilder) EXPECT() *CommonBuilder_Expecter
- func (_m *CommonBuilder) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (_m *CommonBuilder) Explain(_a0 string, args ...interface{}) string
- func (_m *CommonBuilder) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (_m *CommonBuilder) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
- func (_m *CommonBuilder) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- type CommonBuilder_ExecContext_Call
- func (_c *CommonBuilder_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *CommonBuilder_ExecContext_Call
- func (_c *CommonBuilder_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *CommonBuilder_ExecContext_Call
- func (_c *CommonBuilder_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *CommonBuilder_ExecContext_Call
- type CommonBuilder_Expecter
- func (_e *CommonBuilder_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *CommonBuilder_ExecContext_Call
- func (_e *CommonBuilder_Expecter) Explain(_a0 interface{}, args ...interface{}) *CommonBuilder_Explain_Call
- func (_e *CommonBuilder_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *CommonBuilder_GetContext_Call
- func (_e *CommonBuilder_Expecter) QueryxContext(ctx interface{}, query interface{}, args ...interface{}) *CommonBuilder_QueryxContext_Call
- func (_e *CommonBuilder_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *CommonBuilder_SelectContext_Call
- type CommonBuilder_Explain_Call
- func (_c *CommonBuilder_Explain_Call) Return(_a0 string) *CommonBuilder_Explain_Call
- func (_c *CommonBuilder_Explain_Call) Run(run func(_a0 string, args ...interface{})) *CommonBuilder_Explain_Call
- func (_c *CommonBuilder_Explain_Call) RunAndReturn(run func(string, ...interface{}) string) *CommonBuilder_Explain_Call
- type CommonBuilder_GetContext_Call
- func (_c *CommonBuilder_GetContext_Call) Return(_a0 error) *CommonBuilder_GetContext_Call
- func (_c *CommonBuilder_GetContext_Call) Run(...) *CommonBuilder_GetContext_Call
- func (_c *CommonBuilder_GetContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *CommonBuilder_GetContext_Call
- type CommonBuilder_QueryxContext_Call
- func (_c *CommonBuilder_QueryxContext_Call) Return(_a0 *sqlx.Rows, _a1 error) *CommonBuilder_QueryxContext_Call
- func (_c *CommonBuilder_QueryxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *CommonBuilder_QueryxContext_Call
- func (_c *CommonBuilder_QueryxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *CommonBuilder_QueryxContext_Call
- type CommonBuilder_SelectContext_Call
- func (_c *CommonBuilder_SelectContext_Call) Return(_a0 error) *CommonBuilder_SelectContext_Call
- func (_c *CommonBuilder_SelectContext_Call) Run(...) *CommonBuilder_SelectContext_Call
- func (_c *CommonBuilder_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *CommonBuilder_SelectContext_Call
- type DB
- func (_m *DB) BeginTransaction() (db.Tx, error)
- func (_m *DB) Commit() error
- func (_m *DB) Connection(name string) db.DB
- func (_m *DB) Delete(sql string, args ...interface{}) (*db.Result, error)
- func (_m *DB) EXPECT() *DB_Expecter
- func (_m *DB) Insert(sql string, args ...interface{}) (*db.Result, error)
- func (_m *DB) Rollback() error
- func (_m *DB) Select(dest interface{}, sql string, args ...interface{}) error
- func (_m *DB) Statement(sql string, args ...interface{}) error
- func (_m *DB) Table(name string) db.Query
- func (_m *DB) Transaction(txFunc func(db.Tx) error) error
- func (_m *DB) Update(sql string, args ...interface{}) (*db.Result, error)
- func (_m *DB) WithContext(ctx context.Context) db.DB
- type DB_BeginTransaction_Call
- type DB_Commit_Call
- type DB_Connection_Call
- type DB_Delete_Call
- type DB_Expecter
- func (_e *DB_Expecter) BeginTransaction() *DB_BeginTransaction_Call
- func (_e *DB_Expecter) Commit() *DB_Commit_Call
- func (_e *DB_Expecter) Connection(name interface{}) *DB_Connection_Call
- func (_e *DB_Expecter) Delete(sql interface{}, args ...interface{}) *DB_Delete_Call
- func (_e *DB_Expecter) Insert(sql interface{}, args ...interface{}) *DB_Insert_Call
- func (_e *DB_Expecter) Rollback() *DB_Rollback_Call
- func (_e *DB_Expecter) Select(dest interface{}, sql interface{}, args ...interface{}) *DB_Select_Call
- func (_e *DB_Expecter) Statement(sql interface{}, args ...interface{}) *DB_Statement_Call
- func (_e *DB_Expecter) Table(name interface{}) *DB_Table_Call
- func (_e *DB_Expecter) Transaction(txFunc interface{}) *DB_Transaction_Call
- func (_e *DB_Expecter) Update(sql interface{}, args ...interface{}) *DB_Update_Call
- func (_e *DB_Expecter) WithContext(ctx interface{}) *DB_WithContext_Call
- type DB_Insert_Call
- type DB_Rollback_Call
- type DB_Select_Call
- type DB_Statement_Call
- type DB_Table_Call
- type DB_Transaction_Call
- type DB_Update_Call
- type DB_WithContext_Call
- type Query
- func (_m *Query) Chunk(size uint64, callback func([]db.Row) error) error
- func (_m *Query) Count() (int64, error)
- func (_m *Query) CrossJoin(query string, args ...interface{}) db.Query
- func (_m *Query) Cursor() chan db.Row
- func (_m *Query) Decrement(column string, value ...uint64) error
- func (_m *Query) Delete() (*db.Result, error)
- func (_m *Query) Distinct(columns ...string) db.Query
- func (_m *Query) DoesntExist() (bool, error)
- func (_m *Query) EXPECT() *Query_Expecter
- func (_m *Query) Each(callback func(db.Row) error) error
- func (_m *Query) Exists() (bool, error)
- func (_m *Query) Find(dest interface{}, conds ...interface{}) error
- func (_m *Query) FindOrFail(dest interface{}, conds ...interface{}) error
- func (_m *Query) First(dest interface{}) error
- func (_m *Query) FirstOr(dest interface{}, callback func() error) error
- func (_m *Query) FirstOrFail(dest interface{}) error
- func (_m *Query) Get(dest interface{}) error
- func (_m *Query) GroupBy(column ...string) db.Query
- func (_m *Query) Having(query interface{}, args ...interface{}) db.Query
- func (_m *Query) InRandomOrder() db.Query
- func (_m *Query) Increment(column string, value ...uint64) error
- func (_m *Query) Insert(data interface{}) (*db.Result, error)
- func (_m *Query) InsertGetID(data interface{}) (int64, error)
- func (_m *Query) Join(query string, args ...interface{}) db.Query
- func (_m *Query) Latest(column ...string) db.Query
- func (_m *Query) LeftJoin(query string, args ...interface{}) db.Query
- func (_m *Query) Limit(limit uint64) db.Query
- func (_m *Query) LockForUpdate() db.Query
- func (_m *Query) Offset(offset uint64) db.Query
- func (_m *Query) OrWhere(query interface{}, args ...interface{}) db.Query
- func (_m *Query) OrWhereBetween(column string, x interface{}, y interface{}) db.Query
- func (_m *Query) OrWhereColumn(column1 string, column2 ...string) db.Query
- func (_m *Query) OrWhereIn(column string, values []interface{}) db.Query
- func (_m *Query) OrWhereJsonContains(column string, value interface{}) db.Query
- func (_m *Query) OrWhereJsonContainsKey(column string) db.Query
- func (_m *Query) OrWhereJsonDoesntContain(column string, value interface{}) db.Query
- func (_m *Query) OrWhereJsonDoesntContainKey(column string) db.Query
- func (_m *Query) OrWhereJsonLength(column string, length int) db.Query
- func (_m *Query) OrWhereLike(column string, value string) db.Query
- func (_m *Query) OrWhereNot(query interface{}, args ...interface{}) db.Query
- func (_m *Query) OrWhereNotBetween(column string, x interface{}, y interface{}) db.Query
- func (_m *Query) OrWhereNotIn(column string, values []interface{}) db.Query
- func (_m *Query) OrWhereNotLike(column string, value string) db.Query
- func (_m *Query) OrWhereNotNull(column string) db.Query
- func (_m *Query) OrWhereNull(column string) db.Query
- func (_m *Query) OrWhereRaw(raw string, args []interface{}) db.Query
- func (_m *Query) OrderBy(column string, directions ...string) db.Query
- func (_m *Query) OrderByDesc(column string) db.Query
- func (_m *Query) OrderByRaw(raw string) db.Query
- func (_m *Query) Paginate(page int, limit int, dest interface{}, total *int64) error
- func (_m *Query) Pluck(column string, dest interface{}) error
- func (_m *Query) RightJoin(query string, args ...interface{}) db.Query
- func (_m *Query) Select(columns ...string) db.Query
- func (_m *Query) SharedLock() db.Query
- func (_m *Query) Sum(column string) (int64, error)
- func (_m *Query) ToRawSql() db.ToSql
- func (_m *Query) ToSql() db.ToSql
- func (_m *Query) Update(column interface{}, value ...interface{}) (*db.Result, error)
- func (_m *Query) UpdateOrInsert(attributes interface{}, values interface{}) (*db.Result, error)
- func (_m *Query) Value(column string, dest interface{}) error
- func (_m *Query) When(condition bool, callback func(db.Query) db.Query, ...) db.Query
- func (_m *Query) Where(query interface{}, args ...interface{}) db.Query
- func (_m *Query) WhereBetween(column string, x interface{}, y interface{}) db.Query
- func (_m *Query) WhereColumn(column1 string, column2 ...string) db.Query
- func (_m *Query) WhereExists(_a0 func() db.Query) db.Query
- func (_m *Query) WhereIn(column string, values []interface{}) db.Query
- func (_m *Query) WhereJsonContains(column string, value interface{}) db.Query
- func (_m *Query) WhereJsonContainsKey(column string) db.Query
- func (_m *Query) WhereJsonDoesntContain(column string, value interface{}) db.Query
- func (_m *Query) WhereJsonDoesntContainKey(column string) db.Query
- func (_m *Query) WhereJsonLength(column string, length int) db.Query
- func (_m *Query) WhereLike(column string, value string) db.Query
- func (_m *Query) WhereNot(query interface{}, args ...interface{}) db.Query
- func (_m *Query) WhereNotBetween(column string, x interface{}, y interface{}) db.Query
- func (_m *Query) WhereNotIn(column string, values []interface{}) db.Query
- func (_m *Query) WhereNotLike(column string, value string) db.Query
- func (_m *Query) WhereNotNull(column string) db.Query
- func (_m *Query) WhereNull(column string) db.Query
- func (_m *Query) WhereRaw(raw string, args []interface{}) db.Query
- type Query_Chunk_Call
- type Query_Count_Call
- type Query_CrossJoin_Call
- type Query_Cursor_Call
- type Query_Decrement_Call
- type Query_Delete_Call
- type Query_Distinct_Call
- type Query_DoesntExist_Call
- type Query_Each_Call
- type Query_Exists_Call
- type Query_Expecter
- func (_e *Query_Expecter) Chunk(size interface{}, callback interface{}) *Query_Chunk_Call
- func (_e *Query_Expecter) Count() *Query_Count_Call
- func (_e *Query_Expecter) CrossJoin(query interface{}, args ...interface{}) *Query_CrossJoin_Call
- func (_e *Query_Expecter) Cursor() *Query_Cursor_Call
- func (_e *Query_Expecter) Decrement(column interface{}, value ...interface{}) *Query_Decrement_Call
- func (_e *Query_Expecter) Delete() *Query_Delete_Call
- func (_e *Query_Expecter) Distinct(columns ...interface{}) *Query_Distinct_Call
- func (_e *Query_Expecter) DoesntExist() *Query_DoesntExist_Call
- func (_e *Query_Expecter) Each(callback interface{}) *Query_Each_Call
- func (_e *Query_Expecter) Exists() *Query_Exists_Call
- func (_e *Query_Expecter) Find(dest interface{}, conds ...interface{}) *Query_Find_Call
- func (_e *Query_Expecter) FindOrFail(dest interface{}, conds ...interface{}) *Query_FindOrFail_Call
- func (_e *Query_Expecter) First(dest interface{}) *Query_First_Call
- func (_e *Query_Expecter) FirstOr(dest interface{}, callback interface{}) *Query_FirstOr_Call
- func (_e *Query_Expecter) FirstOrFail(dest interface{}) *Query_FirstOrFail_Call
- func (_e *Query_Expecter) Get(dest interface{}) *Query_Get_Call
- func (_e *Query_Expecter) GroupBy(column ...interface{}) *Query_GroupBy_Call
- func (_e *Query_Expecter) Having(query interface{}, args ...interface{}) *Query_Having_Call
- func (_e *Query_Expecter) InRandomOrder() *Query_InRandomOrder_Call
- func (_e *Query_Expecter) Increment(column interface{}, value ...interface{}) *Query_Increment_Call
- func (_e *Query_Expecter) Insert(data interface{}) *Query_Insert_Call
- func (_e *Query_Expecter) InsertGetID(data interface{}) *Query_InsertGetID_Call
- func (_e *Query_Expecter) Join(query interface{}, args ...interface{}) *Query_Join_Call
- func (_e *Query_Expecter) Latest(column ...interface{}) *Query_Latest_Call
- func (_e *Query_Expecter) LeftJoin(query interface{}, args ...interface{}) *Query_LeftJoin_Call
- func (_e *Query_Expecter) Limit(limit interface{}) *Query_Limit_Call
- func (_e *Query_Expecter) LockForUpdate() *Query_LockForUpdate_Call
- func (_e *Query_Expecter) Offset(offset interface{}) *Query_Offset_Call
- func (_e *Query_Expecter) OrWhere(query interface{}, args ...interface{}) *Query_OrWhere_Call
- func (_e *Query_Expecter) OrWhereBetween(column interface{}, x interface{}, y interface{}) *Query_OrWhereBetween_Call
- func (_e *Query_Expecter) OrWhereColumn(column1 interface{}, column2 ...interface{}) *Query_OrWhereColumn_Call
- func (_e *Query_Expecter) OrWhereIn(column interface{}, values interface{}) *Query_OrWhereIn_Call
- func (_e *Query_Expecter) OrWhereJsonContains(column interface{}, value interface{}) *Query_OrWhereJsonContains_Call
- func (_e *Query_Expecter) OrWhereJsonContainsKey(column interface{}) *Query_OrWhereJsonContainsKey_Call
- func (_e *Query_Expecter) OrWhereJsonDoesntContain(column interface{}, value interface{}) *Query_OrWhereJsonDoesntContain_Call
- func (_e *Query_Expecter) OrWhereJsonDoesntContainKey(column interface{}) *Query_OrWhereJsonDoesntContainKey_Call
- func (_e *Query_Expecter) OrWhereJsonLength(column interface{}, length interface{}) *Query_OrWhereJsonLength_Call
- func (_e *Query_Expecter) OrWhereLike(column interface{}, value interface{}) *Query_OrWhereLike_Call
- func (_e *Query_Expecter) OrWhereNot(query interface{}, args ...interface{}) *Query_OrWhereNot_Call
- func (_e *Query_Expecter) OrWhereNotBetween(column interface{}, x interface{}, y interface{}) *Query_OrWhereNotBetween_Call
- func (_e *Query_Expecter) OrWhereNotIn(column interface{}, values interface{}) *Query_OrWhereNotIn_Call
- func (_e *Query_Expecter) OrWhereNotLike(column interface{}, value interface{}) *Query_OrWhereNotLike_Call
- func (_e *Query_Expecter) OrWhereNotNull(column interface{}) *Query_OrWhereNotNull_Call
- func (_e *Query_Expecter) OrWhereNull(column interface{}) *Query_OrWhereNull_Call
- func (_e *Query_Expecter) OrWhereRaw(raw interface{}, args interface{}) *Query_OrWhereRaw_Call
- func (_e *Query_Expecter) OrderBy(column interface{}, directions ...interface{}) *Query_OrderBy_Call
- func (_e *Query_Expecter) OrderByDesc(column interface{}) *Query_OrderByDesc_Call
- func (_e *Query_Expecter) OrderByRaw(raw interface{}) *Query_OrderByRaw_Call
- func (_e *Query_Expecter) Paginate(page interface{}, limit interface{}, dest interface{}, total interface{}) *Query_Paginate_Call
- func (_e *Query_Expecter) Pluck(column interface{}, dest interface{}) *Query_Pluck_Call
- func (_e *Query_Expecter) RightJoin(query interface{}, args ...interface{}) *Query_RightJoin_Call
- func (_e *Query_Expecter) Select(columns ...interface{}) *Query_Select_Call
- func (_e *Query_Expecter) SharedLock() *Query_SharedLock_Call
- func (_e *Query_Expecter) Sum(column interface{}) *Query_Sum_Call
- func (_e *Query_Expecter) ToRawSql() *Query_ToRawSql_Call
- func (_e *Query_Expecter) ToSql() *Query_ToSql_Call
- func (_e *Query_Expecter) Update(column interface{}, value ...interface{}) *Query_Update_Call
- func (_e *Query_Expecter) UpdateOrInsert(attributes interface{}, values interface{}) *Query_UpdateOrInsert_Call
- func (_e *Query_Expecter) Value(column interface{}, dest interface{}) *Query_Value_Call
- func (_e *Query_Expecter) When(condition interface{}, callback interface{}, falseCallback ...interface{}) *Query_When_Call
- func (_e *Query_Expecter) Where(query interface{}, args ...interface{}) *Query_Where_Call
- func (_e *Query_Expecter) WhereBetween(column interface{}, x interface{}, y interface{}) *Query_WhereBetween_Call
- func (_e *Query_Expecter) WhereColumn(column1 interface{}, column2 ...interface{}) *Query_WhereColumn_Call
- func (_e *Query_Expecter) WhereExists(_a0 interface{}) *Query_WhereExists_Call
- func (_e *Query_Expecter) WhereIn(column interface{}, values interface{}) *Query_WhereIn_Call
- func (_e *Query_Expecter) WhereJsonContains(column interface{}, value interface{}) *Query_WhereJsonContains_Call
- func (_e *Query_Expecter) WhereJsonContainsKey(column interface{}) *Query_WhereJsonContainsKey_Call
- func (_e *Query_Expecter) WhereJsonDoesntContain(column interface{}, value interface{}) *Query_WhereJsonDoesntContain_Call
- func (_e *Query_Expecter) WhereJsonDoesntContainKey(column interface{}) *Query_WhereJsonDoesntContainKey_Call
- func (_e *Query_Expecter) WhereJsonLength(column interface{}, length interface{}) *Query_WhereJsonLength_Call
- func (_e *Query_Expecter) WhereLike(column interface{}, value interface{}) *Query_WhereLike_Call
- func (_e *Query_Expecter) WhereNot(query interface{}, args ...interface{}) *Query_WhereNot_Call
- func (_e *Query_Expecter) WhereNotBetween(column interface{}, x interface{}, y interface{}) *Query_WhereNotBetween_Call
- func (_e *Query_Expecter) WhereNotIn(column interface{}, values interface{}) *Query_WhereNotIn_Call
- func (_e *Query_Expecter) WhereNotLike(column interface{}, value interface{}) *Query_WhereNotLike_Call
- func (_e *Query_Expecter) WhereNotNull(column interface{}) *Query_WhereNotNull_Call
- func (_e *Query_Expecter) WhereNull(column interface{}) *Query_WhereNull_Call
- func (_e *Query_Expecter) WhereRaw(raw interface{}, args interface{}) *Query_WhereRaw_Call
- type Query_FindOrFail_Call
- type Query_Find_Call
- type Query_FirstOrFail_Call
- type Query_FirstOr_Call
- type Query_First_Call
- type Query_Get_Call
- type Query_GroupBy_Call
- type Query_Having_Call
- type Query_InRandomOrder_Call
- type Query_Increment_Call
- type Query_InsertGetID_Call
- type Query_Insert_Call
- type Query_Join_Call
- type Query_Latest_Call
- type Query_LeftJoin_Call
- type Query_Limit_Call
- type Query_LockForUpdate_Call
- type Query_Offset_Call
- type Query_OrWhereBetween_Call
- func (_c *Query_OrWhereBetween_Call) Return(_a0 db.Query) *Query_OrWhereBetween_Call
- func (_c *Query_OrWhereBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_OrWhereBetween_Call
- func (_c *Query_OrWhereBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) db.Query) *Query_OrWhereBetween_Call
- type Query_OrWhereColumn_Call
- func (_c *Query_OrWhereColumn_Call) Return(_a0 db.Query) *Query_OrWhereColumn_Call
- func (_c *Query_OrWhereColumn_Call) Run(run func(column1 string, column2 ...string)) *Query_OrWhereColumn_Call
- func (_c *Query_OrWhereColumn_Call) RunAndReturn(run func(string, ...string) db.Query) *Query_OrWhereColumn_Call
- type Query_OrWhereIn_Call
- type Query_OrWhereJsonContainsKey_Call
- func (_c *Query_OrWhereJsonContainsKey_Call) Return(_a0 db.Query) *Query_OrWhereJsonContainsKey_Call
- func (_c *Query_OrWhereJsonContainsKey_Call) Run(run func(column string)) *Query_OrWhereJsonContainsKey_Call
- func (_c *Query_OrWhereJsonContainsKey_Call) RunAndReturn(run func(string) db.Query) *Query_OrWhereJsonContainsKey_Call
- type Query_OrWhereJsonContains_Call
- func (_c *Query_OrWhereJsonContains_Call) Return(_a0 db.Query) *Query_OrWhereJsonContains_Call
- func (_c *Query_OrWhereJsonContains_Call) Run(run func(column string, value interface{})) *Query_OrWhereJsonContains_Call
- func (_c *Query_OrWhereJsonContains_Call) RunAndReturn(run func(string, interface{}) db.Query) *Query_OrWhereJsonContains_Call
- type Query_OrWhereJsonDoesntContainKey_Call
- func (_c *Query_OrWhereJsonDoesntContainKey_Call) Return(_a0 db.Query) *Query_OrWhereJsonDoesntContainKey_Call
- func (_c *Query_OrWhereJsonDoesntContainKey_Call) Run(run func(column string)) *Query_OrWhereJsonDoesntContainKey_Call
- func (_c *Query_OrWhereJsonDoesntContainKey_Call) RunAndReturn(run func(string) db.Query) *Query_OrWhereJsonDoesntContainKey_Call
- type Query_OrWhereJsonDoesntContain_Call
- func (_c *Query_OrWhereJsonDoesntContain_Call) Return(_a0 db.Query) *Query_OrWhereJsonDoesntContain_Call
- func (_c *Query_OrWhereJsonDoesntContain_Call) Run(run func(column string, value interface{})) *Query_OrWhereJsonDoesntContain_Call
- func (_c *Query_OrWhereJsonDoesntContain_Call) RunAndReturn(run func(string, interface{}) db.Query) *Query_OrWhereJsonDoesntContain_Call
- type Query_OrWhereJsonLength_Call
- func (_c *Query_OrWhereJsonLength_Call) Return(_a0 db.Query) *Query_OrWhereJsonLength_Call
- func (_c *Query_OrWhereJsonLength_Call) Run(run func(column string, length int)) *Query_OrWhereJsonLength_Call
- func (_c *Query_OrWhereJsonLength_Call) RunAndReturn(run func(string, int) db.Query) *Query_OrWhereJsonLength_Call
- type Query_OrWhereLike_Call
- type Query_OrWhereNotBetween_Call
- func (_c *Query_OrWhereNotBetween_Call) Return(_a0 db.Query) *Query_OrWhereNotBetween_Call
- func (_c *Query_OrWhereNotBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_OrWhereNotBetween_Call
- func (_c *Query_OrWhereNotBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) db.Query) *Query_OrWhereNotBetween_Call
- type Query_OrWhereNotIn_Call
- func (_c *Query_OrWhereNotIn_Call) Return(_a0 db.Query) *Query_OrWhereNotIn_Call
- func (_c *Query_OrWhereNotIn_Call) Run(run func(column string, values []interface{})) *Query_OrWhereNotIn_Call
- func (_c *Query_OrWhereNotIn_Call) RunAndReturn(run func(string, []interface{}) db.Query) *Query_OrWhereNotIn_Call
- type Query_OrWhereNotLike_Call
- func (_c *Query_OrWhereNotLike_Call) Return(_a0 db.Query) *Query_OrWhereNotLike_Call
- func (_c *Query_OrWhereNotLike_Call) Run(run func(column string, value string)) *Query_OrWhereNotLike_Call
- func (_c *Query_OrWhereNotLike_Call) RunAndReturn(run func(string, string) db.Query) *Query_OrWhereNotLike_Call
- type Query_OrWhereNotNull_Call
- type Query_OrWhereNot_Call
- func (_c *Query_OrWhereNot_Call) Return(_a0 db.Query) *Query_OrWhereNot_Call
- func (_c *Query_OrWhereNot_Call) Run(run func(query interface{}, args ...interface{})) *Query_OrWhereNot_Call
- func (_c *Query_OrWhereNot_Call) RunAndReturn(run func(interface{}, ...interface{}) db.Query) *Query_OrWhereNot_Call
- type Query_OrWhereNull_Call
- type Query_OrWhereRaw_Call
- type Query_OrWhere_Call
- type Query_OrderByDesc_Call
- type Query_OrderByRaw_Call
- type Query_OrderBy_Call
- type Query_Paginate_Call
- func (_c *Query_Paginate_Call) Return(_a0 error) *Query_Paginate_Call
- func (_c *Query_Paginate_Call) Run(run func(page int, limit int, dest interface{}, total *int64)) *Query_Paginate_Call
- func (_c *Query_Paginate_Call) RunAndReturn(run func(int, int, interface{}, *int64) error) *Query_Paginate_Call
- type Query_Pluck_Call
- type Query_RightJoin_Call
- type Query_Select_Call
- type Query_SharedLock_Call
- type Query_Sum_Call
- type Query_ToRawSql_Call
- type Query_ToSql_Call
- type Query_UpdateOrInsert_Call
- func (_c *Query_UpdateOrInsert_Call) Return(_a0 *db.Result, _a1 error) *Query_UpdateOrInsert_Call
- func (_c *Query_UpdateOrInsert_Call) Run(run func(attributes interface{}, values interface{})) *Query_UpdateOrInsert_Call
- func (_c *Query_UpdateOrInsert_Call) RunAndReturn(run func(interface{}, interface{}) (*db.Result, error)) *Query_UpdateOrInsert_Call
- type Query_Update_Call
- func (_c *Query_Update_Call) Return(_a0 *db.Result, _a1 error) *Query_Update_Call
- func (_c *Query_Update_Call) Run(run func(column interface{}, value ...interface{})) *Query_Update_Call
- func (_c *Query_Update_Call) RunAndReturn(run func(interface{}, ...interface{}) (*db.Result, error)) *Query_Update_Call
- type Query_Value_Call
- type Query_When_Call
- func (_c *Query_When_Call) Return(_a0 db.Query) *Query_When_Call
- func (_c *Query_When_Call) Run(run func(condition bool, callback func(db.Query) db.Query, ...)) *Query_When_Call
- func (_c *Query_When_Call) RunAndReturn(run func(bool, func(db.Query) db.Query, ...func(db.Query) db.Query) db.Query) *Query_When_Call
- type Query_WhereBetween_Call
- func (_c *Query_WhereBetween_Call) Return(_a0 db.Query) *Query_WhereBetween_Call
- func (_c *Query_WhereBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_WhereBetween_Call
- func (_c *Query_WhereBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) db.Query) *Query_WhereBetween_Call
- type Query_WhereColumn_Call
- type Query_WhereExists_Call
- type Query_WhereIn_Call
- type Query_WhereJsonContainsKey_Call
- func (_c *Query_WhereJsonContainsKey_Call) Return(_a0 db.Query) *Query_WhereJsonContainsKey_Call
- func (_c *Query_WhereJsonContainsKey_Call) Run(run func(column string)) *Query_WhereJsonContainsKey_Call
- func (_c *Query_WhereJsonContainsKey_Call) RunAndReturn(run func(string) db.Query) *Query_WhereJsonContainsKey_Call
- type Query_WhereJsonContains_Call
- func (_c *Query_WhereJsonContains_Call) Return(_a0 db.Query) *Query_WhereJsonContains_Call
- func (_c *Query_WhereJsonContains_Call) Run(run func(column string, value interface{})) *Query_WhereJsonContains_Call
- func (_c *Query_WhereJsonContains_Call) RunAndReturn(run func(string, interface{}) db.Query) *Query_WhereJsonContains_Call
- type Query_WhereJsonDoesntContainKey_Call
- func (_c *Query_WhereJsonDoesntContainKey_Call) Return(_a0 db.Query) *Query_WhereJsonDoesntContainKey_Call
- func (_c *Query_WhereJsonDoesntContainKey_Call) Run(run func(column string)) *Query_WhereJsonDoesntContainKey_Call
- func (_c *Query_WhereJsonDoesntContainKey_Call) RunAndReturn(run func(string) db.Query) *Query_WhereJsonDoesntContainKey_Call
- type Query_WhereJsonDoesntContain_Call
- func (_c *Query_WhereJsonDoesntContain_Call) Return(_a0 db.Query) *Query_WhereJsonDoesntContain_Call
- func (_c *Query_WhereJsonDoesntContain_Call) Run(run func(column string, value interface{})) *Query_WhereJsonDoesntContain_Call
- func (_c *Query_WhereJsonDoesntContain_Call) RunAndReturn(run func(string, interface{}) db.Query) *Query_WhereJsonDoesntContain_Call
- type Query_WhereJsonLength_Call
- func (_c *Query_WhereJsonLength_Call) Return(_a0 db.Query) *Query_WhereJsonLength_Call
- func (_c *Query_WhereJsonLength_Call) Run(run func(column string, length int)) *Query_WhereJsonLength_Call
- func (_c *Query_WhereJsonLength_Call) RunAndReturn(run func(string, int) db.Query) *Query_WhereJsonLength_Call
- type Query_WhereLike_Call
- type Query_WhereNotBetween_Call
- func (_c *Query_WhereNotBetween_Call) Return(_a0 db.Query) *Query_WhereNotBetween_Call
- func (_c *Query_WhereNotBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_WhereNotBetween_Call
- func (_c *Query_WhereNotBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) db.Query) *Query_WhereNotBetween_Call
- type Query_WhereNotIn_Call
- type Query_WhereNotLike_Call
- type Query_WhereNotNull_Call
- type Query_WhereNot_Call
- type Query_WhereNull_Call
- type Query_WhereRaw_Call
- type Query_Where_Call
- type Row
- type Row_Err_Call
- type Row_Expecter
- type Row_Scan_Call
- type ToSql
- func (_m *ToSql) Count() string
- func (_m *ToSql) Delete() string
- func (_m *ToSql) EXPECT() *ToSql_Expecter
- func (_m *ToSql) First() string
- func (_m *ToSql) Get() string
- func (_m *ToSql) Insert(data interface{}) string
- func (_m *ToSql) Pluck(column string, dest interface{}) string
- func (_m *ToSql) Update(column interface{}, value ...interface{}) string
- type ToSql_Count_Call
- type ToSql_Delete_Call
- type ToSql_Expecter
- func (_e *ToSql_Expecter) Count() *ToSql_Count_Call
- func (_e *ToSql_Expecter) Delete() *ToSql_Delete_Call
- func (_e *ToSql_Expecter) First() *ToSql_First_Call
- func (_e *ToSql_Expecter) Get() *ToSql_Get_Call
- func (_e *ToSql_Expecter) Insert(data interface{}) *ToSql_Insert_Call
- func (_e *ToSql_Expecter) Pluck(column interface{}, dest interface{}) *ToSql_Pluck_Call
- func (_e *ToSql_Expecter) Update(column interface{}, value ...interface{}) *ToSql_Update_Call
- type ToSql_First_Call
- type ToSql_Get_Call
- type ToSql_Insert_Call
- type ToSql_Pluck_Call
- type ToSql_Update_Call
- type Tx
- func (_m *Tx) Commit() error
- func (_m *Tx) Delete(sql string, args ...interface{}) (*db.Result, error)
- func (_m *Tx) EXPECT() *Tx_Expecter
- func (_m *Tx) Insert(sql string, args ...interface{}) (*db.Result, error)
- func (_m *Tx) Rollback() error
- func (_m *Tx) Select(dest interface{}, sql string, args ...interface{}) error
- func (_m *Tx) Statement(sql string, args ...interface{}) error
- func (_m *Tx) Table(name string) db.Query
- func (_m *Tx) Update(sql string, args ...interface{}) (*db.Result, error)
- type TxBuilder
- func (_m *TxBuilder) Commit() error
- func (_m *TxBuilder) EXPECT() *TxBuilder_Expecter
- func (_m *TxBuilder) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (_m *TxBuilder) Explain(_a0 string, args ...interface{}) string
- func (_m *TxBuilder) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (_m *TxBuilder) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
- func (_m *TxBuilder) Rollback() error
- func (_m *TxBuilder) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- type TxBuilder_Commit_Call
- type TxBuilder_ExecContext_Call
- func (_c *TxBuilder_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *TxBuilder_ExecContext_Call
- func (_c *TxBuilder_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *TxBuilder_ExecContext_Call
- func (_c *TxBuilder_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *TxBuilder_ExecContext_Call
- type TxBuilder_Expecter
- func (_e *TxBuilder_Expecter) Commit() *TxBuilder_Commit_Call
- func (_e *TxBuilder_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *TxBuilder_ExecContext_Call
- func (_e *TxBuilder_Expecter) Explain(_a0 interface{}, args ...interface{}) *TxBuilder_Explain_Call
- func (_e *TxBuilder_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *TxBuilder_GetContext_Call
- func (_e *TxBuilder_Expecter) QueryxContext(ctx interface{}, query interface{}, args ...interface{}) *TxBuilder_QueryxContext_Call
- func (_e *TxBuilder_Expecter) Rollback() *TxBuilder_Rollback_Call
- func (_e *TxBuilder_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *TxBuilder_SelectContext_Call
- type TxBuilder_Explain_Call
- type TxBuilder_GetContext_Call
- func (_c *TxBuilder_GetContext_Call) Return(_a0 error) *TxBuilder_GetContext_Call
- func (_c *TxBuilder_GetContext_Call) Run(...) *TxBuilder_GetContext_Call
- func (_c *TxBuilder_GetContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *TxBuilder_GetContext_Call
- type TxBuilder_QueryxContext_Call
- func (_c *TxBuilder_QueryxContext_Call) Return(_a0 *sqlx.Rows, _a1 error) *TxBuilder_QueryxContext_Call
- func (_c *TxBuilder_QueryxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *TxBuilder_QueryxContext_Call
- func (_c *TxBuilder_QueryxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *TxBuilder_QueryxContext_Call
- type TxBuilder_Rollback_Call
- type TxBuilder_SelectContext_Call
- func (_c *TxBuilder_SelectContext_Call) Return(_a0 error) *TxBuilder_SelectContext_Call
- func (_c *TxBuilder_SelectContext_Call) Run(...) *TxBuilder_SelectContext_Call
- func (_c *TxBuilder_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *TxBuilder_SelectContext_Call
- type Tx_Commit_Call
- type Tx_Delete_Call
- type Tx_Expecter
- func (_e *Tx_Expecter) Commit() *Tx_Commit_Call
- func (_e *Tx_Expecter) Delete(sql interface{}, args ...interface{}) *Tx_Delete_Call
- func (_e *Tx_Expecter) Insert(sql interface{}, args ...interface{}) *Tx_Insert_Call
- func (_e *Tx_Expecter) Rollback() *Tx_Rollback_Call
- func (_e *Tx_Expecter) Select(dest interface{}, sql interface{}, args ...interface{}) *Tx_Select_Call
- func (_e *Tx_Expecter) Statement(sql interface{}, args ...interface{}) *Tx_Statement_Call
- func (_e *Tx_Expecter) Table(name interface{}) *Tx_Table_Call
- func (_e *Tx_Expecter) Update(sql interface{}, args ...interface{}) *Tx_Update_Call
- type Tx_Insert_Call
- type Tx_Rollback_Call
- type Tx_Select_Call
- type Tx_Statement_Call
- type Tx_Table_Call
- type Tx_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
Builder is an autogenerated mock type for the Builder type
func NewBuilder ¶
NewBuilder creates a new instance of Builder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Builder) EXPECT ¶
func (_m *Builder) EXPECT() *Builder_Expecter
func (*Builder) ExecContext ¶
func (_m *Builder) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: ctx, query, args
func (*Builder) GetContext ¶
func (_m *Builder) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
GetContext provides a mock function with given fields: ctx, dest, query, args
type Builder_Beginx_Call ¶
Builder_Beginx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Beginx'
func (*Builder_Beginx_Call) Return ¶
func (_c *Builder_Beginx_Call) Return(_a0 *sqlx.Tx, _a1 error) *Builder_Beginx_Call
func (*Builder_Beginx_Call) Run ¶
func (_c *Builder_Beginx_Call) Run(run func()) *Builder_Beginx_Call
func (*Builder_Beginx_Call) RunAndReturn ¶
func (_c *Builder_Beginx_Call) RunAndReturn(run func() (*sqlx.Tx, error)) *Builder_Beginx_Call
type Builder_ExecContext_Call ¶
Builder_ExecContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecContext'
func (*Builder_ExecContext_Call) Return ¶
func (_c *Builder_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Builder_ExecContext_Call
func (*Builder_ExecContext_Call) Run ¶
func (_c *Builder_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Builder_ExecContext_Call
func (*Builder_ExecContext_Call) RunAndReturn ¶
func (_c *Builder_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Builder_ExecContext_Call
type Builder_Expecter ¶
type Builder_Expecter struct {
// contains filtered or unexported fields
}
func (*Builder_Expecter) Beginx ¶
func (_e *Builder_Expecter) Beginx() *Builder_Beginx_Call
Beginx is a helper method to define mock.On call
func (*Builder_Expecter) ExecContext ¶
func (_e *Builder_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Builder_ExecContext_Call
ExecContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Builder_Expecter) Explain ¶
func (_e *Builder_Expecter) Explain(_a0 interface{}, args ...interface{}) *Builder_Explain_Call
Explain is a helper method to define mock.On call
- _a0 string
- args ...interface{}
func (*Builder_Expecter) GetContext ¶
func (_e *Builder_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Builder_GetContext_Call
GetContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
func (*Builder_Expecter) QueryxContext ¶
func (_e *Builder_Expecter) QueryxContext(ctx interface{}, query interface{}, args ...interface{}) *Builder_QueryxContext_Call
QueryxContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Builder_Expecter) SelectContext ¶
func (_e *Builder_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Builder_SelectContext_Call
SelectContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
type Builder_Explain_Call ¶
Builder_Explain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Explain'
func (*Builder_Explain_Call) Return ¶
func (_c *Builder_Explain_Call) Return(_a0 string) *Builder_Explain_Call
func (*Builder_Explain_Call) Run ¶
func (_c *Builder_Explain_Call) Run(run func(_a0 string, args ...interface{})) *Builder_Explain_Call
func (*Builder_Explain_Call) RunAndReturn ¶
func (_c *Builder_Explain_Call) RunAndReturn(run func(string, ...interface{}) string) *Builder_Explain_Call
type Builder_GetContext_Call ¶
Builder_GetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContext'
func (*Builder_GetContext_Call) Return ¶
func (_c *Builder_GetContext_Call) Return(_a0 error) *Builder_GetContext_Call
func (*Builder_GetContext_Call) Run ¶
func (_c *Builder_GetContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Builder_GetContext_Call
func (*Builder_GetContext_Call) RunAndReturn ¶
func (_c *Builder_GetContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Builder_GetContext_Call
type Builder_QueryxContext_Call ¶
Builder_QueryxContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryxContext'
func (*Builder_QueryxContext_Call) Return ¶
func (_c *Builder_QueryxContext_Call) Return(_a0 *sqlx.Rows, _a1 error) *Builder_QueryxContext_Call
func (*Builder_QueryxContext_Call) Run ¶
func (_c *Builder_QueryxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Builder_QueryxContext_Call
func (*Builder_QueryxContext_Call) RunAndReturn ¶
func (_c *Builder_QueryxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *Builder_QueryxContext_Call
type Builder_SelectContext_Call ¶
Builder_SelectContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectContext'
func (*Builder_SelectContext_Call) Return ¶
func (_c *Builder_SelectContext_Call) Return(_a0 error) *Builder_SelectContext_Call
func (*Builder_SelectContext_Call) Run ¶
func (_c *Builder_SelectContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Builder_SelectContext_Call
func (*Builder_SelectContext_Call) RunAndReturn ¶
func (_c *Builder_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Builder_SelectContext_Call
type CommonBuilder ¶
CommonBuilder is an autogenerated mock type for the CommonBuilder type
func NewCommonBuilder ¶
func NewCommonBuilder(t interface {
mock.TestingT
Cleanup(func())
}) *CommonBuilder
NewCommonBuilder creates a new instance of CommonBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CommonBuilder) EXPECT ¶
func (_m *CommonBuilder) EXPECT() *CommonBuilder_Expecter
func (*CommonBuilder) ExecContext ¶
func (_m *CommonBuilder) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: ctx, query, args
func (*CommonBuilder) Explain ¶
func (_m *CommonBuilder) Explain(_a0 string, args ...interface{}) string
Explain provides a mock function with given fields: _a0, args
func (*CommonBuilder) GetContext ¶
func (_m *CommonBuilder) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
GetContext provides a mock function with given fields: ctx, dest, query, args
func (*CommonBuilder) QueryxContext ¶
func (_m *CommonBuilder) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
QueryxContext provides a mock function with given fields: ctx, query, args
func (*CommonBuilder) SelectContext ¶
func (_m *CommonBuilder) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
SelectContext provides a mock function with given fields: ctx, dest, query, args
type CommonBuilder_ExecContext_Call ¶
CommonBuilder_ExecContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecContext'
func (*CommonBuilder_ExecContext_Call) Return ¶
func (_c *CommonBuilder_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *CommonBuilder_ExecContext_Call
func (*CommonBuilder_ExecContext_Call) Run ¶
func (_c *CommonBuilder_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *CommonBuilder_ExecContext_Call
func (*CommonBuilder_ExecContext_Call) RunAndReturn ¶
func (_c *CommonBuilder_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *CommonBuilder_ExecContext_Call
type CommonBuilder_Expecter ¶
type CommonBuilder_Expecter struct {
// contains filtered or unexported fields
}
func (*CommonBuilder_Expecter) ExecContext ¶
func (_e *CommonBuilder_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *CommonBuilder_ExecContext_Call
ExecContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*CommonBuilder_Expecter) Explain ¶
func (_e *CommonBuilder_Expecter) Explain(_a0 interface{}, args ...interface{}) *CommonBuilder_Explain_Call
Explain is a helper method to define mock.On call
- _a0 string
- args ...interface{}
func (*CommonBuilder_Expecter) GetContext ¶
func (_e *CommonBuilder_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *CommonBuilder_GetContext_Call
GetContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
func (*CommonBuilder_Expecter) QueryxContext ¶
func (_e *CommonBuilder_Expecter) QueryxContext(ctx interface{}, query interface{}, args ...interface{}) *CommonBuilder_QueryxContext_Call
QueryxContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*CommonBuilder_Expecter) SelectContext ¶
func (_e *CommonBuilder_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *CommonBuilder_SelectContext_Call
SelectContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
type CommonBuilder_Explain_Call ¶
CommonBuilder_Explain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Explain'
func (*CommonBuilder_Explain_Call) Return ¶
func (_c *CommonBuilder_Explain_Call) Return(_a0 string) *CommonBuilder_Explain_Call
func (*CommonBuilder_Explain_Call) Run ¶
func (_c *CommonBuilder_Explain_Call) Run(run func(_a0 string, args ...interface{})) *CommonBuilder_Explain_Call
func (*CommonBuilder_Explain_Call) RunAndReturn ¶
func (_c *CommonBuilder_Explain_Call) RunAndReturn(run func(string, ...interface{}) string) *CommonBuilder_Explain_Call
type CommonBuilder_GetContext_Call ¶
CommonBuilder_GetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContext'
func (*CommonBuilder_GetContext_Call) Return ¶
func (_c *CommonBuilder_GetContext_Call) Return(_a0 error) *CommonBuilder_GetContext_Call
func (*CommonBuilder_GetContext_Call) Run ¶
func (_c *CommonBuilder_GetContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *CommonBuilder_GetContext_Call
func (*CommonBuilder_GetContext_Call) RunAndReturn ¶
func (_c *CommonBuilder_GetContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *CommonBuilder_GetContext_Call
type CommonBuilder_QueryxContext_Call ¶
CommonBuilder_QueryxContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryxContext'
func (*CommonBuilder_QueryxContext_Call) Return ¶
func (_c *CommonBuilder_QueryxContext_Call) Return(_a0 *sqlx.Rows, _a1 error) *CommonBuilder_QueryxContext_Call
func (*CommonBuilder_QueryxContext_Call) Run ¶
func (_c *CommonBuilder_QueryxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *CommonBuilder_QueryxContext_Call
func (*CommonBuilder_QueryxContext_Call) RunAndReturn ¶
func (_c *CommonBuilder_QueryxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *CommonBuilder_QueryxContext_Call
type CommonBuilder_SelectContext_Call ¶
CommonBuilder_SelectContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectContext'
func (*CommonBuilder_SelectContext_Call) Return ¶
func (_c *CommonBuilder_SelectContext_Call) Return(_a0 error) *CommonBuilder_SelectContext_Call
func (*CommonBuilder_SelectContext_Call) Run ¶
func (_c *CommonBuilder_SelectContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *CommonBuilder_SelectContext_Call
func (*CommonBuilder_SelectContext_Call) RunAndReturn ¶
func (_c *CommonBuilder_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *CommonBuilder_SelectContext_Call
type DB ¶
DB is an autogenerated mock type for the DB type
func NewDB ¶
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. The first argument is typically a *testing.T value.
func (*DB) BeginTransaction ¶
BeginTransaction provides a mock function with no fields
func (*DB) Connection ¶
Connection provides a mock function with given fields: name
func (*DB) EXPECT ¶
func (_m *DB) EXPECT() *DB_Expecter
func (*DB) Transaction ¶
Transaction provides a mock function with given fields: txFunc
type DB_BeginTransaction_Call ¶
DB_BeginTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginTransaction'
func (*DB_BeginTransaction_Call) Return ¶
func (_c *DB_BeginTransaction_Call) Return(_a0 db.Tx, _a1 error) *DB_BeginTransaction_Call
func (*DB_BeginTransaction_Call) Run ¶
func (_c *DB_BeginTransaction_Call) Run(run func()) *DB_BeginTransaction_Call
func (*DB_BeginTransaction_Call) RunAndReturn ¶
func (_c *DB_BeginTransaction_Call) RunAndReturn(run func() (db.Tx, error)) *DB_BeginTransaction_Call
type DB_Commit_Call ¶
DB_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*DB_Commit_Call) Return ¶
func (_c *DB_Commit_Call) Return(_a0 error) *DB_Commit_Call
func (*DB_Commit_Call) Run ¶
func (_c *DB_Commit_Call) Run(run func()) *DB_Commit_Call
func (*DB_Commit_Call) RunAndReturn ¶
func (_c *DB_Commit_Call) RunAndReturn(run func() error) *DB_Commit_Call
type DB_Connection_Call ¶
DB_Connection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connection'
func (*DB_Connection_Call) Return ¶
func (_c *DB_Connection_Call) Return(_a0 db.DB) *DB_Connection_Call
func (*DB_Connection_Call) Run ¶
func (_c *DB_Connection_Call) Run(run func(name string)) *DB_Connection_Call
func (*DB_Connection_Call) RunAndReturn ¶
func (_c *DB_Connection_Call) RunAndReturn(run func(string) db.DB) *DB_Connection_Call
type DB_Delete_Call ¶
DB_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*DB_Delete_Call) Return ¶
func (_c *DB_Delete_Call) Return(_a0 *db.Result, _a1 error) *DB_Delete_Call
func (*DB_Delete_Call) Run ¶
func (_c *DB_Delete_Call) Run(run func(sql string, args ...interface{})) *DB_Delete_Call
func (*DB_Delete_Call) RunAndReturn ¶
func (_c *DB_Delete_Call) RunAndReturn(run func(string, ...interface{}) (*db.Result, error)) *DB_Delete_Call
type DB_Expecter ¶
type DB_Expecter struct {
// contains filtered or unexported fields
}
func (*DB_Expecter) BeginTransaction ¶
func (_e *DB_Expecter) BeginTransaction() *DB_BeginTransaction_Call
BeginTransaction is a helper method to define mock.On call
func (*DB_Expecter) Commit ¶
func (_e *DB_Expecter) Commit() *DB_Commit_Call
Commit is a helper method to define mock.On call
func (*DB_Expecter) Connection ¶
func (_e *DB_Expecter) Connection(name interface{}) *DB_Connection_Call
Connection is a helper method to define mock.On call
- name string
func (*DB_Expecter) Delete ¶
func (_e *DB_Expecter) Delete(sql interface{}, args ...interface{}) *DB_Delete_Call
Delete is a helper method to define mock.On call
- sql string
- args ...interface{}
func (*DB_Expecter) Insert ¶
func (_e *DB_Expecter) Insert(sql interface{}, args ...interface{}) *DB_Insert_Call
Insert is a helper method to define mock.On call
- sql string
- args ...interface{}
func (*DB_Expecter) Rollback ¶
func (_e *DB_Expecter) Rollback() *DB_Rollback_Call
Rollback is a helper method to define mock.On call
func (*DB_Expecter) Select ¶
func (_e *DB_Expecter) Select(dest interface{}, sql interface{}, args ...interface{}) *DB_Select_Call
Select is a helper method to define mock.On call
- dest interface{}
- sql string
- args ...interface{}
func (*DB_Expecter) Statement ¶
func (_e *DB_Expecter) Statement(sql interface{}, args ...interface{}) *DB_Statement_Call
Statement is a helper method to define mock.On call
- sql string
- args ...interface{}
func (*DB_Expecter) Table ¶
func (_e *DB_Expecter) Table(name interface{}) *DB_Table_Call
Table is a helper method to define mock.On call
- name string
func (*DB_Expecter) Transaction ¶
func (_e *DB_Expecter) Transaction(txFunc interface{}) *DB_Transaction_Call
Transaction is a helper method to define mock.On call
- txFunc func(db.Tx) error
func (*DB_Expecter) Update ¶
func (_e *DB_Expecter) Update(sql interface{}, args ...interface{}) *DB_Update_Call
Update is a helper method to define mock.On call
- sql string
- args ...interface{}
func (*DB_Expecter) WithContext ¶
func (_e *DB_Expecter) WithContext(ctx interface{}) *DB_WithContext_Call
WithContext is a helper method to define mock.On call
- ctx context.Context
type DB_Insert_Call ¶
DB_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*DB_Insert_Call) Return ¶
func (_c *DB_Insert_Call) Return(_a0 *db.Result, _a1 error) *DB_Insert_Call
func (*DB_Insert_Call) Run ¶
func (_c *DB_Insert_Call) Run(run func(sql string, args ...interface{})) *DB_Insert_Call
func (*DB_Insert_Call) RunAndReturn ¶
func (_c *DB_Insert_Call) RunAndReturn(run func(string, ...interface{}) (*db.Result, error)) *DB_Insert_Call
type DB_Rollback_Call ¶
DB_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*DB_Rollback_Call) Return ¶
func (_c *DB_Rollback_Call) Return(_a0 error) *DB_Rollback_Call
func (*DB_Rollback_Call) Run ¶
func (_c *DB_Rollback_Call) Run(run func()) *DB_Rollback_Call
func (*DB_Rollback_Call) RunAndReturn ¶
func (_c *DB_Rollback_Call) RunAndReturn(run func() error) *DB_Rollback_Call
type DB_Select_Call ¶
DB_Select_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Select'
func (*DB_Select_Call) Return ¶
func (_c *DB_Select_Call) Return(_a0 error) *DB_Select_Call
func (*DB_Select_Call) Run ¶
func (_c *DB_Select_Call) Run(run func(dest interface{}, sql string, args ...interface{})) *DB_Select_Call
func (*DB_Select_Call) RunAndReturn ¶
func (_c *DB_Select_Call) RunAndReturn(run func(interface{}, string, ...interface{}) error) *DB_Select_Call
type DB_Statement_Call ¶
DB_Statement_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Statement'
func (*DB_Statement_Call) Return ¶
func (_c *DB_Statement_Call) Return(_a0 error) *DB_Statement_Call
func (*DB_Statement_Call) Run ¶
func (_c *DB_Statement_Call) Run(run func(sql string, args ...interface{})) *DB_Statement_Call
func (*DB_Statement_Call) RunAndReturn ¶
func (_c *DB_Statement_Call) RunAndReturn(run func(string, ...interface{}) error) *DB_Statement_Call
type DB_Table_Call ¶
DB_Table_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Table'
func (*DB_Table_Call) Return ¶
func (_c *DB_Table_Call) Return(_a0 db.Query) *DB_Table_Call
func (*DB_Table_Call) Run ¶
func (_c *DB_Table_Call) Run(run func(name string)) *DB_Table_Call
func (*DB_Table_Call) RunAndReturn ¶
func (_c *DB_Table_Call) RunAndReturn(run func(string) db.Query) *DB_Table_Call
type DB_Transaction_Call ¶
DB_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'
func (*DB_Transaction_Call) Return ¶
func (_c *DB_Transaction_Call) Return(_a0 error) *DB_Transaction_Call
func (*DB_Transaction_Call) Run ¶
func (_c *DB_Transaction_Call) Run(run func(txFunc func(db.Tx) error)) *DB_Transaction_Call
func (*DB_Transaction_Call) RunAndReturn ¶
func (_c *DB_Transaction_Call) RunAndReturn(run func(func(db.Tx) error) error) *DB_Transaction_Call
type DB_Update_Call ¶
DB_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*DB_Update_Call) Return ¶
func (_c *DB_Update_Call) Return(_a0 *db.Result, _a1 error) *DB_Update_Call
func (*DB_Update_Call) Run ¶
func (_c *DB_Update_Call) Run(run func(sql string, args ...interface{})) *DB_Update_Call
func (*DB_Update_Call) RunAndReturn ¶
func (_c *DB_Update_Call) RunAndReturn(run func(string, ...interface{}) (*db.Result, error)) *DB_Update_Call
type DB_WithContext_Call ¶
DB_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'
func (*DB_WithContext_Call) Return ¶
func (_c *DB_WithContext_Call) Return(_a0 db.DB) *DB_WithContext_Call
func (*DB_WithContext_Call) Run ¶
func (_c *DB_WithContext_Call) Run(run func(ctx context.Context)) *DB_WithContext_Call
func (*DB_WithContext_Call) RunAndReturn ¶
func (_c *DB_WithContext_Call) RunAndReturn(run func(context.Context) db.DB) *DB_WithContext_Call
type Query ¶
Query is an autogenerated mock type for the Query type
func NewQuery ¶
NewQuery creates a new instance of Query. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Query) DoesntExist ¶
DoesntExist provides a mock function with no fields
func (*Query) EXPECT ¶
func (_m *Query) EXPECT() *Query_Expecter
func (*Query) FindOrFail ¶
FindOrFail provides a mock function with given fields: dest, conds
func (*Query) FirstOrFail ¶
FirstOrFail provides a mock function with given fields: dest
func (*Query) InRandomOrder ¶
InRandomOrder provides a mock function with no fields
func (*Query) InsertGetID ¶
InsertGetID provides a mock function with given fields: data
func (*Query) LockForUpdate ¶
LockForUpdate provides a mock function with no fields
func (*Query) OrWhereBetween ¶
OrWhereBetween provides a mock function with given fields: column, x, y
func (*Query) OrWhereColumn ¶
OrWhereColumn provides a mock function with given fields: column1, column2
func (*Query) OrWhereJsonContains ¶
OrWhereJsonContains provides a mock function with given fields: column, value
func (*Query) OrWhereJsonContainsKey ¶
OrWhereJsonContainsKey provides a mock function with given fields: column
func (*Query) OrWhereJsonDoesntContain ¶
OrWhereJsonDoesntContain provides a mock function with given fields: column, value
func (*Query) OrWhereJsonDoesntContainKey ¶
OrWhereJsonDoesntContainKey provides a mock function with given fields: column
func (*Query) OrWhereJsonLength ¶
OrWhereJsonLength provides a mock function with given fields: column, length
func (*Query) OrWhereLike ¶
OrWhereLike provides a mock function with given fields: column, value
func (*Query) OrWhereNot ¶
OrWhereNot provides a mock function with given fields: query, args
func (*Query) OrWhereNotBetween ¶
OrWhereNotBetween provides a mock function with given fields: column, x, y
func (*Query) OrWhereNotIn ¶
OrWhereNotIn provides a mock function with given fields: column, values
func (*Query) OrWhereNotLike ¶
OrWhereNotLike provides a mock function with given fields: column, value
func (*Query) OrWhereNotNull ¶
OrWhereNotNull provides a mock function with given fields: column
func (*Query) OrWhereNull ¶
OrWhereNull provides a mock function with given fields: column
func (*Query) OrWhereRaw ¶
OrWhereRaw provides a mock function with given fields: raw, args
func (*Query) OrderByDesc ¶
OrderByDesc provides a mock function with given fields: column
func (*Query) OrderByRaw ¶
OrderByRaw provides a mock function with given fields: raw
func (*Query) Paginate ¶
Paginate provides a mock function with given fields: page, limit, dest, total
func (*Query) SharedLock ¶
SharedLock provides a mock function with no fields
func (*Query) UpdateOrInsert ¶
UpdateOrInsert provides a mock function with given fields: attributes, values
func (*Query) When ¶
func (_m *Query) When(condition bool, callback func(db.Query) db.Query, falseCallback ...func(db.Query) db.Query) db.Query
When provides a mock function with given fields: condition, callback, falseCallback
func (*Query) WhereBetween ¶
WhereBetween provides a mock function with given fields: column, x, y
func (*Query) WhereColumn ¶
WhereColumn provides a mock function with given fields: column1, column2
func (*Query) WhereExists ¶
WhereExists provides a mock function with given fields: _a0
func (*Query) WhereJsonContains ¶
WhereJsonContains provides a mock function with given fields: column, value
func (*Query) WhereJsonContainsKey ¶
WhereJsonContainsKey provides a mock function with given fields: column
func (*Query) WhereJsonDoesntContain ¶
WhereJsonDoesntContain provides a mock function with given fields: column, value
func (*Query) WhereJsonDoesntContainKey ¶
WhereJsonDoesntContainKey provides a mock function with given fields: column
func (*Query) WhereJsonLength ¶
WhereJsonLength provides a mock function with given fields: column, length
func (*Query) WhereNotBetween ¶
WhereNotBetween provides a mock function with given fields: column, x, y
func (*Query) WhereNotIn ¶
WhereNotIn provides a mock function with given fields: column, values
func (*Query) WhereNotLike ¶
WhereNotLike provides a mock function with given fields: column, value
func (*Query) WhereNotNull ¶
WhereNotNull provides a mock function with given fields: column
type Query_Chunk_Call ¶
Query_Chunk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Chunk'
func (*Query_Chunk_Call) Return ¶
func (_c *Query_Chunk_Call) Return(_a0 error) *Query_Chunk_Call
func (*Query_Chunk_Call) Run ¶
func (_c *Query_Chunk_Call) Run(run func(size uint64, callback func([]db.Row) error)) *Query_Chunk_Call
func (*Query_Chunk_Call) RunAndReturn ¶
func (_c *Query_Chunk_Call) RunAndReturn(run func(uint64, func([]db.Row) error) error) *Query_Chunk_Call
type Query_Count_Call ¶
Query_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'
func (*Query_Count_Call) Return ¶
func (_c *Query_Count_Call) Return(_a0 int64, _a1 error) *Query_Count_Call
func (*Query_Count_Call) Run ¶
func (_c *Query_Count_Call) Run(run func()) *Query_Count_Call
func (*Query_Count_Call) RunAndReturn ¶
func (_c *Query_Count_Call) RunAndReturn(run func() (int64, error)) *Query_Count_Call
type Query_CrossJoin_Call ¶
Query_CrossJoin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CrossJoin'
func (*Query_CrossJoin_Call) Return ¶
func (_c *Query_CrossJoin_Call) Return(_a0 db.Query) *Query_CrossJoin_Call
func (*Query_CrossJoin_Call) Run ¶
func (_c *Query_CrossJoin_Call) Run(run func(query string, args ...interface{})) *Query_CrossJoin_Call
func (*Query_CrossJoin_Call) RunAndReturn ¶
func (_c *Query_CrossJoin_Call) RunAndReturn(run func(string, ...interface{}) db.Query) *Query_CrossJoin_Call
type Query_Cursor_Call ¶
Query_Cursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cursor'
func (*Query_Cursor_Call) Return ¶
func (_c *Query_Cursor_Call) Return(_a0 chan db.Row) *Query_Cursor_Call
func (*Query_Cursor_Call) Run ¶
func (_c *Query_Cursor_Call) Run(run func()) *Query_Cursor_Call
func (*Query_Cursor_Call) RunAndReturn ¶
func (_c *Query_Cursor_Call) RunAndReturn(run func() chan db.Row) *Query_Cursor_Call
type Query_Decrement_Call ¶
Query_Decrement_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrement'
func (*Query_Decrement_Call) Return ¶
func (_c *Query_Decrement_Call) Return(_a0 error) *Query_Decrement_Call
func (*Query_Decrement_Call) Run ¶
func (_c *Query_Decrement_Call) Run(run func(column string, value ...uint64)) *Query_Decrement_Call
func (*Query_Decrement_Call) RunAndReturn ¶
func (_c *Query_Decrement_Call) RunAndReturn(run func(string, ...uint64) error) *Query_Decrement_Call
type Query_Delete_Call ¶
Query_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Query_Delete_Call) Return ¶
func (_c *Query_Delete_Call) Return(_a0 *db.Result, _a1 error) *Query_Delete_Call
func (*Query_Delete_Call) Run ¶
func (_c *Query_Delete_Call) Run(run func()) *Query_Delete_Call
func (*Query_Delete_Call) RunAndReturn ¶
func (_c *Query_Delete_Call) RunAndReturn(run func() (*db.Result, error)) *Query_Delete_Call
type Query_Distinct_Call ¶
Query_Distinct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Distinct'
func (*Query_Distinct_Call) Return ¶
func (_c *Query_Distinct_Call) Return(_a0 db.Query) *Query_Distinct_Call
func (*Query_Distinct_Call) Run ¶
func (_c *Query_Distinct_Call) Run(run func(columns ...string)) *Query_Distinct_Call
func (*Query_Distinct_Call) RunAndReturn ¶
func (_c *Query_Distinct_Call) RunAndReturn(run func(...string) db.Query) *Query_Distinct_Call
type Query_DoesntExist_Call ¶
Query_DoesntExist_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoesntExist'
func (*Query_DoesntExist_Call) Return ¶
func (_c *Query_DoesntExist_Call) Return(_a0 bool, _a1 error) *Query_DoesntExist_Call
func (*Query_DoesntExist_Call) Run ¶
func (_c *Query_DoesntExist_Call) Run(run func()) *Query_DoesntExist_Call
func (*Query_DoesntExist_Call) RunAndReturn ¶
func (_c *Query_DoesntExist_Call) RunAndReturn(run func() (bool, error)) *Query_DoesntExist_Call
type Query_Each_Call ¶
Query_Each_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Each'
func (*Query_Each_Call) Return ¶
func (_c *Query_Each_Call) Return(_a0 error) *Query_Each_Call
func (*Query_Each_Call) Run ¶
func (_c *Query_Each_Call) Run(run func(callback func(db.Row) error)) *Query_Each_Call
func (*Query_Each_Call) RunAndReturn ¶
func (_c *Query_Each_Call) RunAndReturn(run func(func(db.Row) error) error) *Query_Each_Call
type Query_Exists_Call ¶
Query_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*Query_Exists_Call) Return ¶
func (_c *Query_Exists_Call) Return(_a0 bool, _a1 error) *Query_Exists_Call
func (*Query_Exists_Call) Run ¶
func (_c *Query_Exists_Call) Run(run func()) *Query_Exists_Call
func (*Query_Exists_Call) RunAndReturn ¶
func (_c *Query_Exists_Call) RunAndReturn(run func() (bool, error)) *Query_Exists_Call
type Query_Expecter ¶
type Query_Expecter struct {
// contains filtered or unexported fields
}
func (*Query_Expecter) Chunk ¶
func (_e *Query_Expecter) Chunk(size interface{}, callback interface{}) *Query_Chunk_Call
Chunk is a helper method to define mock.On call
- size uint64
- callback func([]db.Row) error
func (*Query_Expecter) Count ¶
func (_e *Query_Expecter) Count() *Query_Count_Call
Count is a helper method to define mock.On call
func (*Query_Expecter) CrossJoin ¶
func (_e *Query_Expecter) CrossJoin(query interface{}, args ...interface{}) *Query_CrossJoin_Call
CrossJoin is a helper method to define mock.On call
- query string
- args ...interface{}
func (*Query_Expecter) Cursor ¶
func (_e *Query_Expecter) Cursor() *Query_Cursor_Call
Cursor is a helper method to define mock.On call
func (*Query_Expecter) Decrement ¶
func (_e *Query_Expecter) Decrement(column interface{}, value ...interface{}) *Query_Decrement_Call
Decrement is a helper method to define mock.On call
- column string
- value ...uint64
func (*Query_Expecter) Delete ¶
func (_e *Query_Expecter) Delete() *Query_Delete_Call
Delete is a helper method to define mock.On call
func (*Query_Expecter) Distinct ¶
func (_e *Query_Expecter) Distinct(columns ...interface{}) *Query_Distinct_Call
Distinct is a helper method to define mock.On call
- columns ...string
func (*Query_Expecter) DoesntExist ¶
func (_e *Query_Expecter) DoesntExist() *Query_DoesntExist_Call
DoesntExist is a helper method to define mock.On call
func (*Query_Expecter) Each ¶
func (_e *Query_Expecter) Each(callback interface{}) *Query_Each_Call
Each is a helper method to define mock.On call
- callback func(db.Row) error
func (*Query_Expecter) Exists ¶
func (_e *Query_Expecter) Exists() *Query_Exists_Call
Exists is a helper method to define mock.On call
func (*Query_Expecter) Find ¶
func (_e *Query_Expecter) Find(dest interface{}, conds ...interface{}) *Query_Find_Call
Find is a helper method to define mock.On call
- dest interface{}
- conds ...interface{}
func (*Query_Expecter) FindOrFail ¶
func (_e *Query_Expecter) FindOrFail(dest interface{}, conds ...interface{}) *Query_FindOrFail_Call
FindOrFail is a helper method to define mock.On call
- dest interface{}
- conds ...interface{}
func (*Query_Expecter) First ¶
func (_e *Query_Expecter) First(dest interface{}) *Query_First_Call
First is a helper method to define mock.On call
- dest interface{}
func (*Query_Expecter) FirstOr ¶
func (_e *Query_Expecter) FirstOr(dest interface{}, callback interface{}) *Query_FirstOr_Call
FirstOr is a helper method to define mock.On call
- dest interface{}
- callback func() error
func (*Query_Expecter) FirstOrFail ¶
func (_e *Query_Expecter) FirstOrFail(dest interface{}) *Query_FirstOrFail_Call
FirstOrFail is a helper method to define mock.On call
- dest interface{}
func (*Query_Expecter) Get ¶
func (_e *Query_Expecter) Get(dest interface{}) *Query_Get_Call
Get is a helper method to define mock.On call
- dest interface{}
func (*Query_Expecter) GroupBy ¶
func (_e *Query_Expecter) GroupBy(column ...interface{}) *Query_GroupBy_Call
GroupBy is a helper method to define mock.On call
- column ...string
func (*Query_Expecter) Having ¶
func (_e *Query_Expecter) Having(query interface{}, args ...interface{}) *Query_Having_Call
Having is a helper method to define mock.On call
- query interface{}
- args ...interface{}
func (*Query_Expecter) InRandomOrder ¶
func (_e *Query_Expecter) InRandomOrder() *Query_InRandomOrder_Call
InRandomOrder is a helper method to define mock.On call
func (*Query_Expecter) Increment ¶
func (_e *Query_Expecter) Increment(column interface{}, value ...interface{}) *Query_Increment_Call
Increment is a helper method to define mock.On call
- column string
- value ...uint64
func (*Query_Expecter) Insert ¶
func (_e *Query_Expecter) Insert(data interface{}) *Query_Insert_Call
Insert is a helper method to define mock.On call
- data interface{}
func (*Query_Expecter) InsertGetID ¶
func (_e *Query_Expecter) InsertGetID(data interface{}) *Query_InsertGetID_Call
InsertGetID is a helper method to define mock.On call
- data interface{}
func (*Query_Expecter) Join ¶
func (_e *Query_Expecter) Join(query interface{}, args ...interface{}) *Query_Join_Call
Join is a helper method to define mock.On call
- query string
- args ...interface{}
func (*Query_Expecter) Latest ¶
func (_e *Query_Expecter) Latest(column ...interface{}) *Query_Latest_Call
Latest is a helper method to define mock.On call
- column ...string
func (*Query_Expecter) LeftJoin ¶
func (_e *Query_Expecter) LeftJoin(query interface{}, args ...interface{}) *Query_LeftJoin_Call
LeftJoin is a helper method to define mock.On call
- query string
- args ...interface{}
func (*Query_Expecter) Limit ¶
func (_e *Query_Expecter) Limit(limit interface{}) *Query_Limit_Call
Limit is a helper method to define mock.On call
- limit uint64
func (*Query_Expecter) LockForUpdate ¶
func (_e *Query_Expecter) LockForUpdate() *Query_LockForUpdate_Call
LockForUpdate is a helper method to define mock.On call
func (*Query_Expecter) Offset ¶
func (_e *Query_Expecter) Offset(offset interface{}) *Query_Offset_Call
Offset is a helper method to define mock.On call
- offset uint64
func (*Query_Expecter) OrWhere ¶
func (_e *Query_Expecter) OrWhere(query interface{}, args ...interface{}) *Query_OrWhere_Call
OrWhere is a helper method to define mock.On call
- query interface{}
- args ...interface{}
func (*Query_Expecter) OrWhereBetween ¶
func (_e *Query_Expecter) OrWhereBetween(column interface{}, x interface{}, y interface{}) *Query_OrWhereBetween_Call
OrWhereBetween is a helper method to define mock.On call
- column string
- x interface{}
- y interface{}
func (*Query_Expecter) OrWhereColumn ¶
func (_e *Query_Expecter) OrWhereColumn(column1 interface{}, column2 ...interface{}) *Query_OrWhereColumn_Call
OrWhereColumn is a helper method to define mock.On call
- column1 string
- column2 ...string
func (*Query_Expecter) OrWhereIn ¶
func (_e *Query_Expecter) OrWhereIn(column interface{}, values interface{}) *Query_OrWhereIn_Call
OrWhereIn is a helper method to define mock.On call
- column string
- values []interface{}
func (*Query_Expecter) OrWhereJsonContains ¶
func (_e *Query_Expecter) OrWhereJsonContains(column interface{}, value interface{}) *Query_OrWhereJsonContains_Call
OrWhereJsonContains is a helper method to define mock.On call
- column string
- value interface{}
func (*Query_Expecter) OrWhereJsonContainsKey ¶
func (_e *Query_Expecter) OrWhereJsonContainsKey(column interface{}) *Query_OrWhereJsonContainsKey_Call
OrWhereJsonContainsKey is a helper method to define mock.On call
- column string
func (*Query_Expecter) OrWhereJsonDoesntContain ¶
func (_e *Query_Expecter) OrWhereJsonDoesntContain(column interface{}, value interface{}) *Query_OrWhereJsonDoesntContain_Call
OrWhereJsonDoesntContain is a helper method to define mock.On call
- column string
- value interface{}
func (*Query_Expecter) OrWhereJsonDoesntContainKey ¶
func (_e *Query_Expecter) OrWhereJsonDoesntContainKey(column interface{}) *Query_OrWhereJsonDoesntContainKey_Call
OrWhereJsonDoesntContainKey is a helper method to define mock.On call
- column string
func (*Query_Expecter) OrWhereJsonLength ¶
func (_e *Query_Expecter) OrWhereJsonLength(column interface{}, length interface{}) *Query_OrWhereJsonLength_Call
OrWhereJsonLength is a helper method to define mock.On call
- column string
- length int
func (*Query_Expecter) OrWhereLike ¶
func (_e *Query_Expecter) OrWhereLike(column interface{}, value interface{}) *Query_OrWhereLike_Call
OrWhereLike is a helper method to define mock.On call
- column string
- value string
func (*Query_Expecter) OrWhereNot ¶
func (_e *Query_Expecter) OrWhereNot(query interface{}, args ...interface{}) *Query_OrWhereNot_Call
OrWhereNot is a helper method to define mock.On call
- query interface{}
- args ...interface{}
func (*Query_Expecter) OrWhereNotBetween ¶
func (_e *Query_Expecter) OrWhereNotBetween(column interface{}, x interface{}, y interface{}) *Query_OrWhereNotBetween_Call
OrWhereNotBetween is a helper method to define mock.On call
- column string
- x interface{}
- y interface{}
func (*Query_Expecter) OrWhereNotIn ¶
func (_e *Query_Expecter) OrWhereNotIn(column interface{}, values interface{}) *Query_OrWhereNotIn_Call
OrWhereNotIn is a helper method to define mock.On call
- column string
- values []interface{}
func (*Query_Expecter) OrWhereNotLike ¶
func (_e *Query_Expecter) OrWhereNotLike(column interface{}, value interface{}) *Query_OrWhereNotLike_Call
OrWhereNotLike is a helper method to define mock.On call
- column string
- value string
func (*Query_Expecter) OrWhereNotNull ¶
func (_e *Query_Expecter) OrWhereNotNull(column interface{}) *Query_OrWhereNotNull_Call
OrWhereNotNull is a helper method to define mock.On call
- column string
func (*Query_Expecter) OrWhereNull ¶
func (_e *Query_Expecter) OrWhereNull(column interface{}) *Query_OrWhereNull_Call
OrWhereNull is a helper method to define mock.On call
- column string
func (*Query_Expecter) OrWhereRaw ¶
func (_e *Query_Expecter) OrWhereRaw(raw interface{}, args interface{}) *Query_OrWhereRaw_Call
OrWhereRaw is a helper method to define mock.On call
- raw string
- args []interface{}
func (*Query_Expecter) OrderBy ¶
func (_e *Query_Expecter) OrderBy(column interface{}, directions ...interface{}) *Query_OrderBy_Call
OrderBy is a helper method to define mock.On call
- column string
- directions ...string
func (*Query_Expecter) OrderByDesc ¶
func (_e *Query_Expecter) OrderByDesc(column interface{}) *Query_OrderByDesc_Call
OrderByDesc is a helper method to define mock.On call
- column string
func (*Query_Expecter) OrderByRaw ¶
func (_e *Query_Expecter) OrderByRaw(raw interface{}) *Query_OrderByRaw_Call
OrderByRaw is a helper method to define mock.On call
- raw string
func (*Query_Expecter) Paginate ¶
func (_e *Query_Expecter) Paginate(page interface{}, limit interface{}, dest interface{}, total interface{}) *Query_Paginate_Call
Paginate is a helper method to define mock.On call
- page int
- limit int
- dest interface{}
- total *int64
func (*Query_Expecter) Pluck ¶
func (_e *Query_Expecter) Pluck(column interface{}, dest interface{}) *Query_Pluck_Call
Pluck is a helper method to define mock.On call
- column string
- dest interface{}
func (*Query_Expecter) RightJoin ¶
func (_e *Query_Expecter) RightJoin(query interface{}, args ...interface{}) *Query_RightJoin_Call
RightJoin is a helper method to define mock.On call
- query string
- args ...interface{}
func (*Query_Expecter) Select ¶
func (_e *Query_Expecter) Select(columns ...interface{}) *Query_Select_Call
Select is a helper method to define mock.On call
- columns ...string
func (*Query_Expecter) SharedLock ¶
func (_e *Query_Expecter) SharedLock() *Query_SharedLock_Call
SharedLock is a helper method to define mock.On call
func (*Query_Expecter) Sum ¶
func (_e *Query_Expecter) Sum(column interface{}) *Query_Sum_Call
Sum is a helper method to define mock.On call
- column string
func (*Query_Expecter) ToRawSql ¶
func (_e *Query_Expecter) ToRawSql() *Query_ToRawSql_Call
ToRawSql is a helper method to define mock.On call
func (*Query_Expecter) ToSql ¶
func (_e *Query_Expecter) ToSql() *Query_ToSql_Call
ToSql is a helper method to define mock.On call
func (*Query_Expecter) Update ¶
func (_e *Query_Expecter) Update(column interface{}, value ...interface{}) *Query_Update_Call
Update is a helper method to define mock.On call
- column interface{}
- value ...interface{}
func (*Query_Expecter) UpdateOrInsert ¶
func (_e *Query_Expecter) UpdateOrInsert(attributes interface{}, values interface{}) *Query_UpdateOrInsert_Call
UpdateOrInsert is a helper method to define mock.On call
- attributes interface{}
- values interface{}
func (*Query_Expecter) Value ¶
func (_e *Query_Expecter) Value(column interface{}, dest interface{}) *Query_Value_Call
Value is a helper method to define mock.On call
- column string
- dest interface{}
func (*Query_Expecter) When ¶
func (_e *Query_Expecter) When(condition interface{}, callback interface{}, falseCallback ...interface{}) *Query_When_Call
When is a helper method to define mock.On call
- condition bool
- callback func(db.Query) db.Query
- falseCallback ...func(db.Query) db.Query
func (*Query_Expecter) Where ¶
func (_e *Query_Expecter) Where(query interface{}, args ...interface{}) *Query_Where_Call
Where is a helper method to define mock.On call
- query interface{}
- args ...interface{}
func (*Query_Expecter) WhereBetween ¶
func (_e *Query_Expecter) WhereBetween(column interface{}, x interface{}, y interface{}) *Query_WhereBetween_Call
WhereBetween is a helper method to define mock.On call
- column string
- x interface{}
- y interface{}
func (*Query_Expecter) WhereColumn ¶
func (_e *Query_Expecter) WhereColumn(column1 interface{}, column2 ...interface{}) *Query_WhereColumn_Call
WhereColumn is a helper method to define mock.On call
- column1 string
- column2 ...string
func (*Query_Expecter) WhereExists ¶
func (_e *Query_Expecter) WhereExists(_a0 interface{}) *Query_WhereExists_Call
WhereExists is a helper method to define mock.On call
- _a0 func() db.Query
func (*Query_Expecter) WhereIn ¶
func (_e *Query_Expecter) WhereIn(column interface{}, values interface{}) *Query_WhereIn_Call
WhereIn is a helper method to define mock.On call
- column string
- values []interface{}
func (*Query_Expecter) WhereJsonContains ¶
func (_e *Query_Expecter) WhereJsonContains(column interface{}, value interface{}) *Query_WhereJsonContains_Call
WhereJsonContains is a helper method to define mock.On call
- column string
- value interface{}
func (*Query_Expecter) WhereJsonContainsKey ¶
func (_e *Query_Expecter) WhereJsonContainsKey(column interface{}) *Query_WhereJsonContainsKey_Call
WhereJsonContainsKey is a helper method to define mock.On call
- column string
func (*Query_Expecter) WhereJsonDoesntContain ¶
func (_e *Query_Expecter) WhereJsonDoesntContain(column interface{}, value interface{}) *Query_WhereJsonDoesntContain_Call
WhereJsonDoesntContain is a helper method to define mock.On call
- column string
- value interface{}
func (*Query_Expecter) WhereJsonDoesntContainKey ¶
func (_e *Query_Expecter) WhereJsonDoesntContainKey(column interface{}) *Query_WhereJsonDoesntContainKey_Call
WhereJsonDoesntContainKey is a helper method to define mock.On call
- column string
func (*Query_Expecter) WhereJsonLength ¶
func (_e *Query_Expecter) WhereJsonLength(column interface{}, length interface{}) *Query_WhereJsonLength_Call
WhereJsonLength is a helper method to define mock.On call
- column string
- length int
func (*Query_Expecter) WhereLike ¶
func (_e *Query_Expecter) WhereLike(column interface{}, value interface{}) *Query_WhereLike_Call
WhereLike is a helper method to define mock.On call
- column string
- value string
func (*Query_Expecter) WhereNot ¶
func (_e *Query_Expecter) WhereNot(query interface{}, args ...interface{}) *Query_WhereNot_Call
WhereNot is a helper method to define mock.On call
- query interface{}
- args ...interface{}
func (*Query_Expecter) WhereNotBetween ¶
func (_e *Query_Expecter) WhereNotBetween(column interface{}, x interface{}, y interface{}) *Query_WhereNotBetween_Call
WhereNotBetween is a helper method to define mock.On call
- column string
- x interface{}
- y interface{}
func (*Query_Expecter) WhereNotIn ¶
func (_e *Query_Expecter) WhereNotIn(column interface{}, values interface{}) *Query_WhereNotIn_Call
WhereNotIn is a helper method to define mock.On call
- column string
- values []interface{}
func (*Query_Expecter) WhereNotLike ¶
func (_e *Query_Expecter) WhereNotLike(column interface{}, value interface{}) *Query_WhereNotLike_Call
WhereNotLike is a helper method to define mock.On call
- column string
- value string
func (*Query_Expecter) WhereNotNull ¶
func (_e *Query_Expecter) WhereNotNull(column interface{}) *Query_WhereNotNull_Call
WhereNotNull is a helper method to define mock.On call
- column string
func (*Query_Expecter) WhereNull ¶
func (_e *Query_Expecter) WhereNull(column interface{}) *Query_WhereNull_Call
WhereNull is a helper method to define mock.On call
- column string
func (*Query_Expecter) WhereRaw ¶
func (_e *Query_Expecter) WhereRaw(raw interface{}, args interface{}) *Query_WhereRaw_Call
WhereRaw is a helper method to define mock.On call
- raw string
- args []interface{}
type Query_FindOrFail_Call ¶
Query_FindOrFail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOrFail'
func (*Query_FindOrFail_Call) Return ¶
func (_c *Query_FindOrFail_Call) Return(_a0 error) *Query_FindOrFail_Call
func (*Query_FindOrFail_Call) Run ¶
func (_c *Query_FindOrFail_Call) Run(run func(dest interface{}, conds ...interface{})) *Query_FindOrFail_Call
func (*Query_FindOrFail_Call) RunAndReturn ¶
func (_c *Query_FindOrFail_Call) RunAndReturn(run func(interface{}, ...interface{}) error) *Query_FindOrFail_Call
type Query_Find_Call ¶
Query_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*Query_Find_Call) Return ¶
func (_c *Query_Find_Call) Return(_a0 error) *Query_Find_Call
func (*Query_Find_Call) Run ¶
func (_c *Query_Find_Call) Run(run func(dest interface{}, conds ...interface{})) *Query_Find_Call
func (*Query_Find_Call) RunAndReturn ¶
func (_c *Query_Find_Call) RunAndReturn(run func(interface{}, ...interface{}) error) *Query_Find_Call
type Query_FirstOrFail_Call ¶
Query_FirstOrFail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstOrFail'
func (*Query_FirstOrFail_Call) Return ¶
func (_c *Query_FirstOrFail_Call) Return(_a0 error) *Query_FirstOrFail_Call
func (*Query_FirstOrFail_Call) Run ¶
func (_c *Query_FirstOrFail_Call) Run(run func(dest interface{})) *Query_FirstOrFail_Call
func (*Query_FirstOrFail_Call) RunAndReturn ¶
func (_c *Query_FirstOrFail_Call) RunAndReturn(run func(interface{}) error) *Query_FirstOrFail_Call
type Query_FirstOr_Call ¶
Query_FirstOr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstOr'
func (*Query_FirstOr_Call) Return ¶
func (_c *Query_FirstOr_Call) Return(_a0 error) *Query_FirstOr_Call
func (*Query_FirstOr_Call) Run ¶
func (_c *Query_FirstOr_Call) Run(run func(dest interface{}, callback func() error)) *Query_FirstOr_Call
func (*Query_FirstOr_Call) RunAndReturn ¶
func (_c *Query_FirstOr_Call) RunAndReturn(run func(interface{}, func() error) error) *Query_FirstOr_Call
type Query_First_Call ¶
Query_First_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'First'
func (*Query_First_Call) Return ¶
func (_c *Query_First_Call) Return(_a0 error) *Query_First_Call
func (*Query_First_Call) Run ¶
func (_c *Query_First_Call) Run(run func(dest interface{})) *Query_First_Call
func (*Query_First_Call) RunAndReturn ¶
func (_c *Query_First_Call) RunAndReturn(run func(interface{}) error) *Query_First_Call
type Query_Get_Call ¶
Query_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Query_Get_Call) Return ¶
func (_c *Query_Get_Call) Return(_a0 error) *Query_Get_Call
func (*Query_Get_Call) Run ¶
func (_c *Query_Get_Call) Run(run func(dest interface{})) *Query_Get_Call
func (*Query_Get_Call) RunAndReturn ¶
func (_c *Query_Get_Call) RunAndReturn(run func(interface{}) error) *Query_Get_Call
type Query_GroupBy_Call ¶
Query_GroupBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupBy'
func (*Query_GroupBy_Call) Return ¶
func (_c *Query_GroupBy_Call) Return(_a0 db.Query) *Query_GroupBy_Call
func (*Query_GroupBy_Call) Run ¶
func (_c *Query_GroupBy_Call) Run(run func(column ...string)) *Query_GroupBy_Call
func (*Query_GroupBy_Call) RunAndReturn ¶
func (_c *Query_GroupBy_Call) RunAndReturn(run func(...string) db.Query) *Query_GroupBy_Call
type Query_Having_Call ¶
Query_Having_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Having'
func (*Query_Having_Call) Return ¶
func (_c *Query_Having_Call) Return(_a0 db.Query) *Query_Having_Call
func (*Query_Having_Call) Run ¶
func (_c *Query_Having_Call) Run(run func(query interface{}, args ...interface{})) *Query_Having_Call
func (*Query_Having_Call) RunAndReturn ¶
func (_c *Query_Having_Call) RunAndReturn(run func(interface{}, ...interface{}) db.Query) *Query_Having_Call
type Query_InRandomOrder_Call ¶
Query_InRandomOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InRandomOrder'
func (*Query_InRandomOrder_Call) Return ¶
func (_c *Query_InRandomOrder_Call) Return(_a0 db.Query) *Query_InRandomOrder_Call
func (*Query_InRandomOrder_Call) Run ¶
func (_c *Query_InRandomOrder_Call) Run(run func()) *Query_InRandomOrder_Call
func (*Query_InRandomOrder_Call) RunAndReturn ¶
func (_c *Query_InRandomOrder_Call) RunAndReturn(run func() db.Query) *Query_InRandomOrder_Call
type Query_Increment_Call ¶
Query_Increment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Increment'
func (*Query_Increment_Call) Return ¶
func (_c *Query_Increment_Call) Return(_a0 error) *Query_Increment_Call
func (*Query_Increment_Call) Run ¶
func (_c *Query_Increment_Call) Run(run func(column string, value ...uint64)) *Query_Increment_Call
func (*Query_Increment_Call) RunAndReturn ¶
func (_c *Query_Increment_Call) RunAndReturn(run func(string, ...uint64) error) *Query_Increment_Call
type Query_InsertGetID_Call ¶
Query_InsertGetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertGetID'
func (*Query_InsertGetID_Call) Return ¶
func (_c *Query_InsertGetID_Call) Return(_a0 int64, _a1 error) *Query_InsertGetID_Call
func (*Query_InsertGetID_Call) Run ¶
func (_c *Query_InsertGetID_Call) Run(run func(data interface{})) *Query_InsertGetID_Call
func (*Query_InsertGetID_Call) RunAndReturn ¶
func (_c *Query_InsertGetID_Call) RunAndReturn(run func(interface{}) (int64, error)) *Query_InsertGetID_Call
type Query_Insert_Call ¶
Query_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*Query_Insert_Call) Return ¶
func (_c *Query_Insert_Call) Return(_a0 *db.Result, _a1 error) *Query_Insert_Call
func (*Query_Insert_Call) Run ¶
func (_c *Query_Insert_Call) Run(run func(data interface{})) *Query_Insert_Call
func (*Query_Insert_Call) RunAndReturn ¶
func (_c *Query_Insert_Call) RunAndReturn(run func(interface{}) (*db.Result, error)) *Query_Insert_Call
type Query_Join_Call ¶
Query_Join_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Join'
func (*Query_Join_Call) Return ¶
func (_c *Query_Join_Call) Return(_a0 db.Query) *Query_Join_Call
func (*Query_Join_Call) Run ¶
func (_c *Query_Join_Call) Run(run func(query string, args ...interface{})) *Query_Join_Call
func (*Query_Join_Call) RunAndReturn ¶
func (_c *Query_Join_Call) RunAndReturn(run func(string, ...interface{}) db.Query) *Query_Join_Call
type Query_Latest_Call ¶
Query_Latest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Latest'
func (*Query_Latest_Call) Return ¶
func (_c *Query_Latest_Call) Return(_a0 db.Query) *Query_Latest_Call
func (*Query_Latest_Call) Run ¶
func (_c *Query_Latest_Call) Run(run func(column ...string)) *Query_Latest_Call
func (*Query_Latest_Call) RunAndReturn ¶
func (_c *Query_Latest_Call) RunAndReturn(run func(...string) db.Query) *Query_Latest_Call
type Query_LeftJoin_Call ¶
Query_LeftJoin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LeftJoin'
func (*Query_LeftJoin_Call) Return ¶
func (_c *Query_LeftJoin_Call) Return(_a0 db.Query) *Query_LeftJoin_Call
func (*Query_LeftJoin_Call) Run ¶
func (_c *Query_LeftJoin_Call) Run(run func(query string, args ...interface{})) *Query_LeftJoin_Call
func (*Query_LeftJoin_Call) RunAndReturn ¶
func (_c *Query_LeftJoin_Call) RunAndReturn(run func(string, ...interface{}) db.Query) *Query_LeftJoin_Call
type Query_Limit_Call ¶
Query_Limit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Limit'
func (*Query_Limit_Call) Return ¶
func (_c *Query_Limit_Call) Return(_a0 db.Query) *Query_Limit_Call
func (*Query_Limit_Call) Run ¶
func (_c *Query_Limit_Call) Run(run func(limit uint64)) *Query_Limit_Call
func (*Query_Limit_Call) RunAndReturn ¶
func (_c *Query_Limit_Call) RunAndReturn(run func(uint64) db.Query) *Query_Limit_Call
type Query_LockForUpdate_Call ¶
Query_LockForUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LockForUpdate'
func (*Query_LockForUpdate_Call) Return ¶
func (_c *Query_LockForUpdate_Call) Return(_a0 db.Query) *Query_LockForUpdate_Call
func (*Query_LockForUpdate_Call) Run ¶
func (_c *Query_LockForUpdate_Call) Run(run func()) *Query_LockForUpdate_Call
func (*Query_LockForUpdate_Call) RunAndReturn ¶
func (_c *Query_LockForUpdate_Call) RunAndReturn(run func() db.Query) *Query_LockForUpdate_Call
type Query_Offset_Call ¶
Query_Offset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Offset'
func (*Query_Offset_Call) Return ¶
func (_c *Query_Offset_Call) Return(_a0 db.Query) *Query_Offset_Call
func (*Query_Offset_Call) Run ¶
func (_c *Query_Offset_Call) Run(run func(offset uint64)) *Query_Offset_Call
func (*Query_Offset_Call) RunAndReturn ¶
func (_c *Query_Offset_Call) RunAndReturn(run func(uint64) db.Query) *Query_Offset_Call
type Query_OrWhereBetween_Call ¶
Query_OrWhereBetween_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereBetween'
func (*Query_OrWhereBetween_Call) Return ¶
func (_c *Query_OrWhereBetween_Call) Return(_a0 db.Query) *Query_OrWhereBetween_Call
func (*Query_OrWhereBetween_Call) Run ¶
func (_c *Query_OrWhereBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_OrWhereBetween_Call
func (*Query_OrWhereBetween_Call) RunAndReturn ¶
func (_c *Query_OrWhereBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) db.Query) *Query_OrWhereBetween_Call
type Query_OrWhereColumn_Call ¶
Query_OrWhereColumn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereColumn'
func (*Query_OrWhereColumn_Call) Return ¶
func (_c *Query_OrWhereColumn_Call) Return(_a0 db.Query) *Query_OrWhereColumn_Call
func (*Query_OrWhereColumn_Call) Run ¶
func (_c *Query_OrWhereColumn_Call) Run(run func(column1 string, column2 ...string)) *Query_OrWhereColumn_Call
func (*Query_OrWhereColumn_Call) RunAndReturn ¶
func (_c *Query_OrWhereColumn_Call) RunAndReturn(run func(string, ...string) db.Query) *Query_OrWhereColumn_Call
type Query_OrWhereIn_Call ¶
Query_OrWhereIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereIn'
func (*Query_OrWhereIn_Call) Return ¶
func (_c *Query_OrWhereIn_Call) Return(_a0 db.Query) *Query_OrWhereIn_Call
func (*Query_OrWhereIn_Call) Run ¶
func (_c *Query_OrWhereIn_Call) Run(run func(column string, values []interface{})) *Query_OrWhereIn_Call
func (*Query_OrWhereIn_Call) RunAndReturn ¶
func (_c *Query_OrWhereIn_Call) RunAndReturn(run func(string, []interface{}) db.Query) *Query_OrWhereIn_Call
type Query_OrWhereJsonContainsKey_Call ¶
Query_OrWhereJsonContainsKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereJsonContainsKey'
func (*Query_OrWhereJsonContainsKey_Call) Return ¶
func (_c *Query_OrWhereJsonContainsKey_Call) Return(_a0 db.Query) *Query_OrWhereJsonContainsKey_Call
func (*Query_OrWhereJsonContainsKey_Call) Run ¶
func (_c *Query_OrWhereJsonContainsKey_Call) Run(run func(column string)) *Query_OrWhereJsonContainsKey_Call
func (*Query_OrWhereJsonContainsKey_Call) RunAndReturn ¶
func (_c *Query_OrWhereJsonContainsKey_Call) RunAndReturn(run func(string) db.Query) *Query_OrWhereJsonContainsKey_Call
type Query_OrWhereJsonContains_Call ¶
Query_OrWhereJsonContains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereJsonContains'
func (*Query_OrWhereJsonContains_Call) Return ¶
func (_c *Query_OrWhereJsonContains_Call) Return(_a0 db.Query) *Query_OrWhereJsonContains_Call
func (*Query_OrWhereJsonContains_Call) Run ¶
func (_c *Query_OrWhereJsonContains_Call) Run(run func(column string, value interface{})) *Query_OrWhereJsonContains_Call
func (*Query_OrWhereJsonContains_Call) RunAndReturn ¶
func (_c *Query_OrWhereJsonContains_Call) RunAndReturn(run func(string, interface{}) db.Query) *Query_OrWhereJsonContains_Call
type Query_OrWhereJsonDoesntContainKey_Call ¶
Query_OrWhereJsonDoesntContainKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereJsonDoesntContainKey'
func (*Query_OrWhereJsonDoesntContainKey_Call) Return ¶
func (_c *Query_OrWhereJsonDoesntContainKey_Call) Return(_a0 db.Query) *Query_OrWhereJsonDoesntContainKey_Call
func (*Query_OrWhereJsonDoesntContainKey_Call) Run ¶
func (_c *Query_OrWhereJsonDoesntContainKey_Call) Run(run func(column string)) *Query_OrWhereJsonDoesntContainKey_Call
func (*Query_OrWhereJsonDoesntContainKey_Call) RunAndReturn ¶
func (_c *Query_OrWhereJsonDoesntContainKey_Call) RunAndReturn(run func(string) db.Query) *Query_OrWhereJsonDoesntContainKey_Call
type Query_OrWhereJsonDoesntContain_Call ¶
Query_OrWhereJsonDoesntContain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereJsonDoesntContain'
func (*Query_OrWhereJsonDoesntContain_Call) Return ¶
func (_c *Query_OrWhereJsonDoesntContain_Call) Return(_a0 db.Query) *Query_OrWhereJsonDoesntContain_Call
func (*Query_OrWhereJsonDoesntContain_Call) Run ¶
func (_c *Query_OrWhereJsonDoesntContain_Call) Run(run func(column string, value interface{})) *Query_OrWhereJsonDoesntContain_Call
func (*Query_OrWhereJsonDoesntContain_Call) RunAndReturn ¶
func (_c *Query_OrWhereJsonDoesntContain_Call) RunAndReturn(run func(string, interface{}) db.Query) *Query_OrWhereJsonDoesntContain_Call
type Query_OrWhereJsonLength_Call ¶
Query_OrWhereJsonLength_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereJsonLength'
func (*Query_OrWhereJsonLength_Call) Return ¶
func (_c *Query_OrWhereJsonLength_Call) Return(_a0 db.Query) *Query_OrWhereJsonLength_Call
func (*Query_OrWhereJsonLength_Call) Run ¶
func (_c *Query_OrWhereJsonLength_Call) Run(run func(column string, length int)) *Query_OrWhereJsonLength_Call
func (*Query_OrWhereJsonLength_Call) RunAndReturn ¶
func (_c *Query_OrWhereJsonLength_Call) RunAndReturn(run func(string, int) db.Query) *Query_OrWhereJsonLength_Call
type Query_OrWhereLike_Call ¶
Query_OrWhereLike_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereLike'
func (*Query_OrWhereLike_Call) Return ¶
func (_c *Query_OrWhereLike_Call) Return(_a0 db.Query) *Query_OrWhereLike_Call
func (*Query_OrWhereLike_Call) Run ¶
func (_c *Query_OrWhereLike_Call) Run(run func(column string, value string)) *Query_OrWhereLike_Call
func (*Query_OrWhereLike_Call) RunAndReturn ¶
func (_c *Query_OrWhereLike_Call) RunAndReturn(run func(string, string) db.Query) *Query_OrWhereLike_Call
type Query_OrWhereNotBetween_Call ¶
Query_OrWhereNotBetween_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNotBetween'
func (*Query_OrWhereNotBetween_Call) Return ¶
func (_c *Query_OrWhereNotBetween_Call) Return(_a0 db.Query) *Query_OrWhereNotBetween_Call
func (*Query_OrWhereNotBetween_Call) Run ¶
func (_c *Query_OrWhereNotBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_OrWhereNotBetween_Call
func (*Query_OrWhereNotBetween_Call) RunAndReturn ¶
func (_c *Query_OrWhereNotBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) db.Query) *Query_OrWhereNotBetween_Call
type Query_OrWhereNotIn_Call ¶
Query_OrWhereNotIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNotIn'
func (*Query_OrWhereNotIn_Call) Return ¶
func (_c *Query_OrWhereNotIn_Call) Return(_a0 db.Query) *Query_OrWhereNotIn_Call
func (*Query_OrWhereNotIn_Call) Run ¶
func (_c *Query_OrWhereNotIn_Call) Run(run func(column string, values []interface{})) *Query_OrWhereNotIn_Call
func (*Query_OrWhereNotIn_Call) RunAndReturn ¶
func (_c *Query_OrWhereNotIn_Call) RunAndReturn(run func(string, []interface{}) db.Query) *Query_OrWhereNotIn_Call
type Query_OrWhereNotLike_Call ¶
Query_OrWhereNotLike_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNotLike'
func (*Query_OrWhereNotLike_Call) Return ¶
func (_c *Query_OrWhereNotLike_Call) Return(_a0 db.Query) *Query_OrWhereNotLike_Call
func (*Query_OrWhereNotLike_Call) Run ¶
func (_c *Query_OrWhereNotLike_Call) Run(run func(column string, value string)) *Query_OrWhereNotLike_Call
func (*Query_OrWhereNotLike_Call) RunAndReturn ¶
func (_c *Query_OrWhereNotLike_Call) RunAndReturn(run func(string, string) db.Query) *Query_OrWhereNotLike_Call
type Query_OrWhereNotNull_Call ¶
Query_OrWhereNotNull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNotNull'
func (*Query_OrWhereNotNull_Call) Return ¶
func (_c *Query_OrWhereNotNull_Call) Return(_a0 db.Query) *Query_OrWhereNotNull_Call
func (*Query_OrWhereNotNull_Call) Run ¶
func (_c *Query_OrWhereNotNull_Call) Run(run func(column string)) *Query_OrWhereNotNull_Call
func (*Query_OrWhereNotNull_Call) RunAndReturn ¶
func (_c *Query_OrWhereNotNull_Call) RunAndReturn(run func(string) db.Query) *Query_OrWhereNotNull_Call
type Query_OrWhereNot_Call ¶
Query_OrWhereNot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNot'
func (*Query_OrWhereNot_Call) Return ¶
func (_c *Query_OrWhereNot_Call) Return(_a0 db.Query) *Query_OrWhereNot_Call
func (*Query_OrWhereNot_Call) Run ¶
func (_c *Query_OrWhereNot_Call) Run(run func(query interface{}, args ...interface{})) *Query_OrWhereNot_Call
func (*Query_OrWhereNot_Call) RunAndReturn ¶
func (_c *Query_OrWhereNot_Call) RunAndReturn(run func(interface{}, ...interface{}) db.Query) *Query_OrWhereNot_Call
type Query_OrWhereNull_Call ¶
Query_OrWhereNull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNull'
func (*Query_OrWhereNull_Call) Return ¶
func (_c *Query_OrWhereNull_Call) Return(_a0 db.Query) *Query_OrWhereNull_Call
func (*Query_OrWhereNull_Call) Run ¶
func (_c *Query_OrWhereNull_Call) Run(run func(column string)) *Query_OrWhereNull_Call
func (*Query_OrWhereNull_Call) RunAndReturn ¶
func (_c *Query_OrWhereNull_Call) RunAndReturn(run func(string) db.Query) *Query_OrWhereNull_Call
type Query_OrWhereRaw_Call ¶
Query_OrWhereRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereRaw'
func (*Query_OrWhereRaw_Call) Return ¶
func (_c *Query_OrWhereRaw_Call) Return(_a0 db.Query) *Query_OrWhereRaw_Call
func (*Query_OrWhereRaw_Call) Run ¶
func (_c *Query_OrWhereRaw_Call) Run(run func(raw string, args []interface{})) *Query_OrWhereRaw_Call
func (*Query_OrWhereRaw_Call) RunAndReturn ¶
func (_c *Query_OrWhereRaw_Call) RunAndReturn(run func(string, []interface{}) db.Query) *Query_OrWhereRaw_Call
type Query_OrWhere_Call ¶
Query_OrWhere_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhere'
func (*Query_OrWhere_Call) Return ¶
func (_c *Query_OrWhere_Call) Return(_a0 db.Query) *Query_OrWhere_Call
func (*Query_OrWhere_Call) Run ¶
func (_c *Query_OrWhere_Call) Run(run func(query interface{}, args ...interface{})) *Query_OrWhere_Call
func (*Query_OrWhere_Call) RunAndReturn ¶
func (_c *Query_OrWhere_Call) RunAndReturn(run func(interface{}, ...interface{}) db.Query) *Query_OrWhere_Call
type Query_OrderByDesc_Call ¶
Query_OrderByDesc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrderByDesc'
func (*Query_OrderByDesc_Call) Return ¶
func (_c *Query_OrderByDesc_Call) Return(_a0 db.Query) *Query_OrderByDesc_Call
func (*Query_OrderByDesc_Call) Run ¶
func (_c *Query_OrderByDesc_Call) Run(run func(column string)) *Query_OrderByDesc_Call
func (*Query_OrderByDesc_Call) RunAndReturn ¶
func (_c *Query_OrderByDesc_Call) RunAndReturn(run func(string) db.Query) *Query_OrderByDesc_Call
type Query_OrderByRaw_Call ¶
Query_OrderByRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrderByRaw'
func (*Query_OrderByRaw_Call) Return ¶
func (_c *Query_OrderByRaw_Call) Return(_a0 db.Query) *Query_OrderByRaw_Call
func (*Query_OrderByRaw_Call) Run ¶
func (_c *Query_OrderByRaw_Call) Run(run func(raw string)) *Query_OrderByRaw_Call
func (*Query_OrderByRaw_Call) RunAndReturn ¶
func (_c *Query_OrderByRaw_Call) RunAndReturn(run func(string) db.Query) *Query_OrderByRaw_Call
type Query_OrderBy_Call ¶
Query_OrderBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrderBy'
func (*Query_OrderBy_Call) Return ¶
func (_c *Query_OrderBy_Call) Return(_a0 db.Query) *Query_OrderBy_Call
func (*Query_OrderBy_Call) Run ¶
func (_c *Query_OrderBy_Call) Run(run func(column string, directions ...string)) *Query_OrderBy_Call
func (*Query_OrderBy_Call) RunAndReturn ¶
func (_c *Query_OrderBy_Call) RunAndReturn(run func(string, ...string) db.Query) *Query_OrderBy_Call
type Query_Paginate_Call ¶
Query_Paginate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Paginate'
func (*Query_Paginate_Call) Return ¶
func (_c *Query_Paginate_Call) Return(_a0 error) *Query_Paginate_Call
func (*Query_Paginate_Call) Run ¶
func (_c *Query_Paginate_Call) Run(run func(page int, limit int, dest interface{}, total *int64)) *Query_Paginate_Call
func (*Query_Paginate_Call) RunAndReturn ¶
func (_c *Query_Paginate_Call) RunAndReturn(run func(int, int, interface{}, *int64) error) *Query_Paginate_Call
type Query_Pluck_Call ¶
Query_Pluck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pluck'
func (*Query_Pluck_Call) Return ¶
func (_c *Query_Pluck_Call) Return(_a0 error) *Query_Pluck_Call
func (*Query_Pluck_Call) Run ¶
func (_c *Query_Pluck_Call) Run(run func(column string, dest interface{})) *Query_Pluck_Call
func (*Query_Pluck_Call) RunAndReturn ¶
func (_c *Query_Pluck_Call) RunAndReturn(run func(string, interface{}) error) *Query_Pluck_Call
type Query_RightJoin_Call ¶
Query_RightJoin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RightJoin'
func (*Query_RightJoin_Call) Return ¶
func (_c *Query_RightJoin_Call) Return(_a0 db.Query) *Query_RightJoin_Call
func (*Query_RightJoin_Call) Run ¶
func (_c *Query_RightJoin_Call) Run(run func(query string, args ...interface{})) *Query_RightJoin_Call
func (*Query_RightJoin_Call) RunAndReturn ¶
func (_c *Query_RightJoin_Call) RunAndReturn(run func(string, ...interface{}) db.Query) *Query_RightJoin_Call
type Query_Select_Call ¶
Query_Select_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Select'
func (*Query_Select_Call) Return ¶
func (_c *Query_Select_Call) Return(_a0 db.Query) *Query_Select_Call
func (*Query_Select_Call) Run ¶
func (_c *Query_Select_Call) Run(run func(columns ...string)) *Query_Select_Call
func (*Query_Select_Call) RunAndReturn ¶
func (_c *Query_Select_Call) RunAndReturn(run func(...string) db.Query) *Query_Select_Call
type Query_SharedLock_Call ¶
type Query_SharedLock_Call struct {
}
Query_SharedLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SharedLock'
func (*Query_SharedLock_Call) Return ¶
func (_c *Query_SharedLock_Call) Return(_a0 db.Query) *Query_SharedLock_Call
func (*Query_SharedLock_Call) Run ¶
func (_c *Query_SharedLock_Call) Run(run func()) *Query_SharedLock_Call
func (*Query_SharedLock_Call) RunAndReturn ¶
func (_c *Query_SharedLock_Call) RunAndReturn(run func() db.Query) *Query_SharedLock_Call
type Query_Sum_Call ¶
Query_Sum_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sum'
func (*Query_Sum_Call) Return ¶
func (_c *Query_Sum_Call) Return(_a0 int64, _a1 error) *Query_Sum_Call
func (*Query_Sum_Call) Run ¶
func (_c *Query_Sum_Call) Run(run func(column string)) *Query_Sum_Call
func (*Query_Sum_Call) RunAndReturn ¶
func (_c *Query_Sum_Call) RunAndReturn(run func(string) (int64, error)) *Query_Sum_Call
type Query_ToRawSql_Call ¶
Query_ToRawSql_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToRawSql'
func (*Query_ToRawSql_Call) Return ¶
func (_c *Query_ToRawSql_Call) Return(_a0 db.ToSql) *Query_ToRawSql_Call
func (*Query_ToRawSql_Call) Run ¶
func (_c *Query_ToRawSql_Call) Run(run func()) *Query_ToRawSql_Call
func (*Query_ToRawSql_Call) RunAndReturn ¶
func (_c *Query_ToRawSql_Call) RunAndReturn(run func() db.ToSql) *Query_ToRawSql_Call
type Query_ToSql_Call ¶
Query_ToSql_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToSql'
func (*Query_ToSql_Call) Return ¶
func (_c *Query_ToSql_Call) Return(_a0 db.ToSql) *Query_ToSql_Call
func (*Query_ToSql_Call) Run ¶
func (_c *Query_ToSql_Call) Run(run func()) *Query_ToSql_Call
func (*Query_ToSql_Call) RunAndReturn ¶
func (_c *Query_ToSql_Call) RunAndReturn(run func() db.ToSql) *Query_ToSql_Call
type Query_UpdateOrInsert_Call ¶
Query_UpdateOrInsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateOrInsert'
func (*Query_UpdateOrInsert_Call) Return ¶
func (_c *Query_UpdateOrInsert_Call) Return(_a0 *db.Result, _a1 error) *Query_UpdateOrInsert_Call
func (*Query_UpdateOrInsert_Call) Run ¶
func (_c *Query_UpdateOrInsert_Call) Run(run func(attributes interface{}, values interface{})) *Query_UpdateOrInsert_Call
func (*Query_UpdateOrInsert_Call) RunAndReturn ¶
func (_c *Query_UpdateOrInsert_Call) RunAndReturn(run func(interface{}, interface{}) (*db.Result, error)) *Query_UpdateOrInsert_Call
type Query_Update_Call ¶
Query_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Query_Update_Call) Return ¶
func (_c *Query_Update_Call) Return(_a0 *db.Result, _a1 error) *Query_Update_Call
func (*Query_Update_Call) Run ¶
func (_c *Query_Update_Call) Run(run func(column interface{}, value ...interface{})) *Query_Update_Call
func (*Query_Update_Call) RunAndReturn ¶
func (_c *Query_Update_Call) RunAndReturn(run func(interface{}, ...interface{}) (*db.Result, error)) *Query_Update_Call
type Query_Value_Call ¶
Query_Value_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Value'
func (*Query_Value_Call) Return ¶
func (_c *Query_Value_Call) Return(_a0 error) *Query_Value_Call
func (*Query_Value_Call) Run ¶
func (_c *Query_Value_Call) Run(run func(column string, dest interface{})) *Query_Value_Call
func (*Query_Value_Call) RunAndReturn ¶
func (_c *Query_Value_Call) RunAndReturn(run func(string, interface{}) error) *Query_Value_Call
type Query_When_Call ¶
Query_When_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'When'
func (*Query_When_Call) Return ¶
func (_c *Query_When_Call) Return(_a0 db.Query) *Query_When_Call
func (*Query_When_Call) RunAndReturn ¶
type Query_WhereBetween_Call ¶
Query_WhereBetween_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereBetween'
func (*Query_WhereBetween_Call) Return ¶
func (_c *Query_WhereBetween_Call) Return(_a0 db.Query) *Query_WhereBetween_Call
func (*Query_WhereBetween_Call) Run ¶
func (_c *Query_WhereBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_WhereBetween_Call
func (*Query_WhereBetween_Call) RunAndReturn ¶
func (_c *Query_WhereBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) db.Query) *Query_WhereBetween_Call
type Query_WhereColumn_Call ¶
Query_WhereColumn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereColumn'
func (*Query_WhereColumn_Call) Return ¶
func (_c *Query_WhereColumn_Call) Return(_a0 db.Query) *Query_WhereColumn_Call
func (*Query_WhereColumn_Call) Run ¶
func (_c *Query_WhereColumn_Call) Run(run func(column1 string, column2 ...string)) *Query_WhereColumn_Call
func (*Query_WhereColumn_Call) RunAndReturn ¶
func (_c *Query_WhereColumn_Call) RunAndReturn(run func(string, ...string) db.Query) *Query_WhereColumn_Call
type Query_WhereExists_Call ¶
Query_WhereExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereExists'
func (*Query_WhereExists_Call) Return ¶
func (_c *Query_WhereExists_Call) Return(_a0 db.Query) *Query_WhereExists_Call
func (*Query_WhereExists_Call) Run ¶
func (_c *Query_WhereExists_Call) Run(run func(_a0 func() db.Query)) *Query_WhereExists_Call
func (*Query_WhereExists_Call) RunAndReturn ¶
func (_c *Query_WhereExists_Call) RunAndReturn(run func(func() db.Query) db.Query) *Query_WhereExists_Call
type Query_WhereIn_Call ¶
Query_WhereIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereIn'
func (*Query_WhereIn_Call) Return ¶
func (_c *Query_WhereIn_Call) Return(_a0 db.Query) *Query_WhereIn_Call
func (*Query_WhereIn_Call) Run ¶
func (_c *Query_WhereIn_Call) Run(run func(column string, values []interface{})) *Query_WhereIn_Call
func (*Query_WhereIn_Call) RunAndReturn ¶
func (_c *Query_WhereIn_Call) RunAndReturn(run func(string, []interface{}) db.Query) *Query_WhereIn_Call
type Query_WhereJsonContainsKey_Call ¶
Query_WhereJsonContainsKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereJsonContainsKey'
func (*Query_WhereJsonContainsKey_Call) Return ¶
func (_c *Query_WhereJsonContainsKey_Call) Return(_a0 db.Query) *Query_WhereJsonContainsKey_Call
func (*Query_WhereJsonContainsKey_Call) Run ¶
func (_c *Query_WhereJsonContainsKey_Call) Run(run func(column string)) *Query_WhereJsonContainsKey_Call
func (*Query_WhereJsonContainsKey_Call) RunAndReturn ¶
func (_c *Query_WhereJsonContainsKey_Call) RunAndReturn(run func(string) db.Query) *Query_WhereJsonContainsKey_Call
type Query_WhereJsonContains_Call ¶
Query_WhereJsonContains_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereJsonContains'
func (*Query_WhereJsonContains_Call) Return ¶
func (_c *Query_WhereJsonContains_Call) Return(_a0 db.Query) *Query_WhereJsonContains_Call
func (*Query_WhereJsonContains_Call) Run ¶
func (_c *Query_WhereJsonContains_Call) Run(run func(column string, value interface{})) *Query_WhereJsonContains_Call
func (*Query_WhereJsonContains_Call) RunAndReturn ¶
func (_c *Query_WhereJsonContains_Call) RunAndReturn(run func(string, interface{}) db.Query) *Query_WhereJsonContains_Call
type Query_WhereJsonDoesntContainKey_Call ¶
Query_WhereJsonDoesntContainKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereJsonDoesntContainKey'
func (*Query_WhereJsonDoesntContainKey_Call) Return ¶
func (_c *Query_WhereJsonDoesntContainKey_Call) Return(_a0 db.Query) *Query_WhereJsonDoesntContainKey_Call
func (*Query_WhereJsonDoesntContainKey_Call) Run ¶
func (_c *Query_WhereJsonDoesntContainKey_Call) Run(run func(column string)) *Query_WhereJsonDoesntContainKey_Call
func (*Query_WhereJsonDoesntContainKey_Call) RunAndReturn ¶
func (_c *Query_WhereJsonDoesntContainKey_Call) RunAndReturn(run func(string) db.Query) *Query_WhereJsonDoesntContainKey_Call
type Query_WhereJsonDoesntContain_Call ¶
Query_WhereJsonDoesntContain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereJsonDoesntContain'
func (*Query_WhereJsonDoesntContain_Call) Return ¶
func (_c *Query_WhereJsonDoesntContain_Call) Return(_a0 db.Query) *Query_WhereJsonDoesntContain_Call
func (*Query_WhereJsonDoesntContain_Call) Run ¶
func (_c *Query_WhereJsonDoesntContain_Call) Run(run func(column string, value interface{})) *Query_WhereJsonDoesntContain_Call
func (*Query_WhereJsonDoesntContain_Call) RunAndReturn ¶
func (_c *Query_WhereJsonDoesntContain_Call) RunAndReturn(run func(string, interface{}) db.Query) *Query_WhereJsonDoesntContain_Call
type Query_WhereJsonLength_Call ¶
Query_WhereJsonLength_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereJsonLength'
func (*Query_WhereJsonLength_Call) Return ¶
func (_c *Query_WhereJsonLength_Call) Return(_a0 db.Query) *Query_WhereJsonLength_Call
func (*Query_WhereJsonLength_Call) Run ¶
func (_c *Query_WhereJsonLength_Call) Run(run func(column string, length int)) *Query_WhereJsonLength_Call
func (*Query_WhereJsonLength_Call) RunAndReturn ¶
func (_c *Query_WhereJsonLength_Call) RunAndReturn(run func(string, int) db.Query) *Query_WhereJsonLength_Call
type Query_WhereLike_Call ¶
Query_WhereLike_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereLike'
func (*Query_WhereLike_Call) Return ¶
func (_c *Query_WhereLike_Call) Return(_a0 db.Query) *Query_WhereLike_Call
func (*Query_WhereLike_Call) Run ¶
func (_c *Query_WhereLike_Call) Run(run func(column string, value string)) *Query_WhereLike_Call
func (*Query_WhereLike_Call) RunAndReturn ¶
func (_c *Query_WhereLike_Call) RunAndReturn(run func(string, string) db.Query) *Query_WhereLike_Call
type Query_WhereNotBetween_Call ¶
Query_WhereNotBetween_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNotBetween'
func (*Query_WhereNotBetween_Call) Return ¶
func (_c *Query_WhereNotBetween_Call) Return(_a0 db.Query) *Query_WhereNotBetween_Call
func (*Query_WhereNotBetween_Call) Run ¶
func (_c *Query_WhereNotBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_WhereNotBetween_Call
func (*Query_WhereNotBetween_Call) RunAndReturn ¶
func (_c *Query_WhereNotBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) db.Query) *Query_WhereNotBetween_Call
type Query_WhereNotIn_Call ¶
Query_WhereNotIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNotIn'
func (*Query_WhereNotIn_Call) Return ¶
func (_c *Query_WhereNotIn_Call) Return(_a0 db.Query) *Query_WhereNotIn_Call
func (*Query_WhereNotIn_Call) Run ¶
func (_c *Query_WhereNotIn_Call) Run(run func(column string, values []interface{})) *Query_WhereNotIn_Call
func (*Query_WhereNotIn_Call) RunAndReturn ¶
func (_c *Query_WhereNotIn_Call) RunAndReturn(run func(string, []interface{}) db.Query) *Query_WhereNotIn_Call
type Query_WhereNotLike_Call ¶
Query_WhereNotLike_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNotLike'
func (*Query_WhereNotLike_Call) Return ¶
func (_c *Query_WhereNotLike_Call) Return(_a0 db.Query) *Query_WhereNotLike_Call
func (*Query_WhereNotLike_Call) Run ¶
func (_c *Query_WhereNotLike_Call) Run(run func(column string, value string)) *Query_WhereNotLike_Call
func (*Query_WhereNotLike_Call) RunAndReturn ¶
func (_c *Query_WhereNotLike_Call) RunAndReturn(run func(string, string) db.Query) *Query_WhereNotLike_Call
type Query_WhereNotNull_Call ¶
Query_WhereNotNull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNotNull'
func (*Query_WhereNotNull_Call) Return ¶
func (_c *Query_WhereNotNull_Call) Return(_a0 db.Query) *Query_WhereNotNull_Call
func (*Query_WhereNotNull_Call) Run ¶
func (_c *Query_WhereNotNull_Call) Run(run func(column string)) *Query_WhereNotNull_Call
func (*Query_WhereNotNull_Call) RunAndReturn ¶
func (_c *Query_WhereNotNull_Call) RunAndReturn(run func(string) db.Query) *Query_WhereNotNull_Call
type Query_WhereNot_Call ¶
Query_WhereNot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNot'
func (*Query_WhereNot_Call) Return ¶
func (_c *Query_WhereNot_Call) Return(_a0 db.Query) *Query_WhereNot_Call
func (*Query_WhereNot_Call) Run ¶
func (_c *Query_WhereNot_Call) Run(run func(query interface{}, args ...interface{})) *Query_WhereNot_Call
func (*Query_WhereNot_Call) RunAndReturn ¶
func (_c *Query_WhereNot_Call) RunAndReturn(run func(interface{}, ...interface{}) db.Query) *Query_WhereNot_Call
type Query_WhereNull_Call ¶
Query_WhereNull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNull'
func (*Query_WhereNull_Call) Return ¶
func (_c *Query_WhereNull_Call) Return(_a0 db.Query) *Query_WhereNull_Call
func (*Query_WhereNull_Call) Run ¶
func (_c *Query_WhereNull_Call) Run(run func(column string)) *Query_WhereNull_Call
func (*Query_WhereNull_Call) RunAndReturn ¶
func (_c *Query_WhereNull_Call) RunAndReturn(run func(string) db.Query) *Query_WhereNull_Call
type Query_WhereRaw_Call ¶
Query_WhereRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereRaw'
func (*Query_WhereRaw_Call) Return ¶
func (_c *Query_WhereRaw_Call) Return(_a0 db.Query) *Query_WhereRaw_Call
func (*Query_WhereRaw_Call) Run ¶
func (_c *Query_WhereRaw_Call) Run(run func(raw string, args []interface{})) *Query_WhereRaw_Call
func (*Query_WhereRaw_Call) RunAndReturn ¶
func (_c *Query_WhereRaw_Call) RunAndReturn(run func(string, []interface{}) db.Query) *Query_WhereRaw_Call
type Query_Where_Call ¶
Query_Where_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Where'
func (*Query_Where_Call) Return ¶
func (_c *Query_Where_Call) Return(_a0 db.Query) *Query_Where_Call
func (*Query_Where_Call) Run ¶
func (_c *Query_Where_Call) Run(run func(query interface{}, args ...interface{})) *Query_Where_Call
func (*Query_Where_Call) RunAndReturn ¶
func (_c *Query_Where_Call) RunAndReturn(run func(interface{}, ...interface{}) db.Query) *Query_Where_Call
type Row ¶
Row is an autogenerated mock type for the Row type
func NewRow ¶
NewRow creates a new instance of Row. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Row) EXPECT ¶
func (_m *Row) EXPECT() *Row_Expecter
type Row_Err_Call ¶
Row_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'
func (*Row_Err_Call) Return ¶
func (_c *Row_Err_Call) Return(_a0 error) *Row_Err_Call
func (*Row_Err_Call) Run ¶
func (_c *Row_Err_Call) Run(run func()) *Row_Err_Call
func (*Row_Err_Call) RunAndReturn ¶
func (_c *Row_Err_Call) RunAndReturn(run func() error) *Row_Err_Call
type Row_Expecter ¶
type Row_Expecter struct {
// contains filtered or unexported fields
}
func (*Row_Expecter) Err ¶
func (_e *Row_Expecter) Err() *Row_Err_Call
Err is a helper method to define mock.On call
func (*Row_Expecter) Scan ¶
func (_e *Row_Expecter) Scan(value interface{}) *Row_Scan_Call
Scan is a helper method to define mock.On call
- value interface{}
type Row_Scan_Call ¶
Row_Scan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scan'
func (*Row_Scan_Call) Return ¶
func (_c *Row_Scan_Call) Return(_a0 error) *Row_Scan_Call
func (*Row_Scan_Call) Run ¶
func (_c *Row_Scan_Call) Run(run func(value interface{})) *Row_Scan_Call
func (*Row_Scan_Call) RunAndReturn ¶
func (_c *Row_Scan_Call) RunAndReturn(run func(interface{}) error) *Row_Scan_Call
type ToSql ¶
ToSql is an autogenerated mock type for the ToSql type
func NewToSql ¶
NewToSql creates a new instance of ToSql. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ToSql) EXPECT ¶
func (_m *ToSql) EXPECT() *ToSql_Expecter
type ToSql_Count_Call ¶
ToSql_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'
func (*ToSql_Count_Call) Return ¶
func (_c *ToSql_Count_Call) Return(_a0 string) *ToSql_Count_Call
func (*ToSql_Count_Call) Run ¶
func (_c *ToSql_Count_Call) Run(run func()) *ToSql_Count_Call
func (*ToSql_Count_Call) RunAndReturn ¶
func (_c *ToSql_Count_Call) RunAndReturn(run func() string) *ToSql_Count_Call
type ToSql_Delete_Call ¶
ToSql_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ToSql_Delete_Call) Return ¶
func (_c *ToSql_Delete_Call) Return(_a0 string) *ToSql_Delete_Call
func (*ToSql_Delete_Call) Run ¶
func (_c *ToSql_Delete_Call) Run(run func()) *ToSql_Delete_Call
func (*ToSql_Delete_Call) RunAndReturn ¶
func (_c *ToSql_Delete_Call) RunAndReturn(run func() string) *ToSql_Delete_Call
type ToSql_Expecter ¶
type ToSql_Expecter struct {
// contains filtered or unexported fields
}
func (*ToSql_Expecter) Count ¶
func (_e *ToSql_Expecter) Count() *ToSql_Count_Call
Count is a helper method to define mock.On call
func (*ToSql_Expecter) Delete ¶
func (_e *ToSql_Expecter) Delete() *ToSql_Delete_Call
Delete is a helper method to define mock.On call
func (*ToSql_Expecter) First ¶
func (_e *ToSql_Expecter) First() *ToSql_First_Call
First is a helper method to define mock.On call
func (*ToSql_Expecter) Get ¶
func (_e *ToSql_Expecter) Get() *ToSql_Get_Call
Get is a helper method to define mock.On call
func (*ToSql_Expecter) Insert ¶
func (_e *ToSql_Expecter) Insert(data interface{}) *ToSql_Insert_Call
Insert is a helper method to define mock.On call
- data interface{}
func (*ToSql_Expecter) Pluck ¶
func (_e *ToSql_Expecter) Pluck(column interface{}, dest interface{}) *ToSql_Pluck_Call
Pluck is a helper method to define mock.On call
- column string
- dest interface{}
func (*ToSql_Expecter) Update ¶
func (_e *ToSql_Expecter) Update(column interface{}, value ...interface{}) *ToSql_Update_Call
Update is a helper method to define mock.On call
- column interface{}
- value ...interface{}
type ToSql_First_Call ¶
ToSql_First_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'First'
func (*ToSql_First_Call) Return ¶
func (_c *ToSql_First_Call) Return(_a0 string) *ToSql_First_Call
func (*ToSql_First_Call) Run ¶
func (_c *ToSql_First_Call) Run(run func()) *ToSql_First_Call
func (*ToSql_First_Call) RunAndReturn ¶
func (_c *ToSql_First_Call) RunAndReturn(run func() string) *ToSql_First_Call
type ToSql_Get_Call ¶
ToSql_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ToSql_Get_Call) Return ¶
func (_c *ToSql_Get_Call) Return(_a0 string) *ToSql_Get_Call
func (*ToSql_Get_Call) Run ¶
func (_c *ToSql_Get_Call) Run(run func()) *ToSql_Get_Call
func (*ToSql_Get_Call) RunAndReturn ¶
func (_c *ToSql_Get_Call) RunAndReturn(run func() string) *ToSql_Get_Call
type ToSql_Insert_Call ¶
ToSql_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*ToSql_Insert_Call) Return ¶
func (_c *ToSql_Insert_Call) Return(_a0 string) *ToSql_Insert_Call
func (*ToSql_Insert_Call) Run ¶
func (_c *ToSql_Insert_Call) Run(run func(data interface{})) *ToSql_Insert_Call
func (*ToSql_Insert_Call) RunAndReturn ¶
func (_c *ToSql_Insert_Call) RunAndReturn(run func(interface{}) string) *ToSql_Insert_Call
type ToSql_Pluck_Call ¶
ToSql_Pluck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pluck'
func (*ToSql_Pluck_Call) Return ¶
func (_c *ToSql_Pluck_Call) Return(_a0 string) *ToSql_Pluck_Call
func (*ToSql_Pluck_Call) Run ¶
func (_c *ToSql_Pluck_Call) Run(run func(column string, dest interface{})) *ToSql_Pluck_Call
func (*ToSql_Pluck_Call) RunAndReturn ¶
func (_c *ToSql_Pluck_Call) RunAndReturn(run func(string, interface{}) string) *ToSql_Pluck_Call
type ToSql_Update_Call ¶
ToSql_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ToSql_Update_Call) Return ¶
func (_c *ToSql_Update_Call) Return(_a0 string) *ToSql_Update_Call
func (*ToSql_Update_Call) Run ¶
func (_c *ToSql_Update_Call) Run(run func(column interface{}, value ...interface{})) *ToSql_Update_Call
func (*ToSql_Update_Call) RunAndReturn ¶
func (_c *ToSql_Update_Call) RunAndReturn(run func(interface{}, ...interface{}) string) *ToSql_Update_Call
type Tx ¶
Tx is an autogenerated mock type for the Tx type
func NewTx ¶
NewTx creates a new instance of Tx. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Tx) EXPECT ¶
func (_m *Tx) EXPECT() *Tx_Expecter
type TxBuilder ¶
TxBuilder is an autogenerated mock type for the TxBuilder type
func NewTxBuilder ¶
NewTxBuilder creates a new instance of TxBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TxBuilder) EXPECT ¶
func (_m *TxBuilder) EXPECT() *TxBuilder_Expecter
func (*TxBuilder) ExecContext ¶
func (_m *TxBuilder) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: ctx, query, args
func (*TxBuilder) GetContext ¶
func (_m *TxBuilder) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
GetContext provides a mock function with given fields: ctx, dest, query, args
func (*TxBuilder) QueryxContext ¶
func (_m *TxBuilder) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
QueryxContext provides a mock function with given fields: ctx, query, args
type TxBuilder_Commit_Call ¶
TxBuilder_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*TxBuilder_Commit_Call) Return ¶
func (_c *TxBuilder_Commit_Call) Return(_a0 error) *TxBuilder_Commit_Call
func (*TxBuilder_Commit_Call) Run ¶
func (_c *TxBuilder_Commit_Call) Run(run func()) *TxBuilder_Commit_Call
func (*TxBuilder_Commit_Call) RunAndReturn ¶
func (_c *TxBuilder_Commit_Call) RunAndReturn(run func() error) *TxBuilder_Commit_Call
type TxBuilder_ExecContext_Call ¶
TxBuilder_ExecContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecContext'
func (*TxBuilder_ExecContext_Call) Return ¶
func (_c *TxBuilder_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *TxBuilder_ExecContext_Call
func (*TxBuilder_ExecContext_Call) Run ¶
func (_c *TxBuilder_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *TxBuilder_ExecContext_Call
func (*TxBuilder_ExecContext_Call) RunAndReturn ¶
func (_c *TxBuilder_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *TxBuilder_ExecContext_Call
type TxBuilder_Expecter ¶
type TxBuilder_Expecter struct {
// contains filtered or unexported fields
}
func (*TxBuilder_Expecter) Commit ¶
func (_e *TxBuilder_Expecter) Commit() *TxBuilder_Commit_Call
Commit is a helper method to define mock.On call
func (*TxBuilder_Expecter) ExecContext ¶
func (_e *TxBuilder_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *TxBuilder_ExecContext_Call
ExecContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*TxBuilder_Expecter) Explain ¶
func (_e *TxBuilder_Expecter) Explain(_a0 interface{}, args ...interface{}) *TxBuilder_Explain_Call
Explain is a helper method to define mock.On call
- _a0 string
- args ...interface{}
func (*TxBuilder_Expecter) GetContext ¶
func (_e *TxBuilder_Expecter) GetContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *TxBuilder_GetContext_Call
GetContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
func (*TxBuilder_Expecter) QueryxContext ¶
func (_e *TxBuilder_Expecter) QueryxContext(ctx interface{}, query interface{}, args ...interface{}) *TxBuilder_QueryxContext_Call
QueryxContext is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*TxBuilder_Expecter) Rollback ¶
func (_e *TxBuilder_Expecter) Rollback() *TxBuilder_Rollback_Call
Rollback is a helper method to define mock.On call
func (*TxBuilder_Expecter) SelectContext ¶
func (_e *TxBuilder_Expecter) SelectContext(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *TxBuilder_SelectContext_Call
SelectContext is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
type TxBuilder_Explain_Call ¶
TxBuilder_Explain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Explain'
func (*TxBuilder_Explain_Call) Return ¶
func (_c *TxBuilder_Explain_Call) Return(_a0 string) *TxBuilder_Explain_Call
func (*TxBuilder_Explain_Call) Run ¶
func (_c *TxBuilder_Explain_Call) Run(run func(_a0 string, args ...interface{})) *TxBuilder_Explain_Call
func (*TxBuilder_Explain_Call) RunAndReturn ¶
func (_c *TxBuilder_Explain_Call) RunAndReturn(run func(string, ...interface{}) string) *TxBuilder_Explain_Call
type TxBuilder_GetContext_Call ¶
TxBuilder_GetContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContext'
func (*TxBuilder_GetContext_Call) Return ¶
func (_c *TxBuilder_GetContext_Call) Return(_a0 error) *TxBuilder_GetContext_Call
func (*TxBuilder_GetContext_Call) Run ¶
func (_c *TxBuilder_GetContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *TxBuilder_GetContext_Call
func (*TxBuilder_GetContext_Call) RunAndReturn ¶
func (_c *TxBuilder_GetContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *TxBuilder_GetContext_Call
type TxBuilder_QueryxContext_Call ¶
TxBuilder_QueryxContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryxContext'
func (*TxBuilder_QueryxContext_Call) Return ¶
func (_c *TxBuilder_QueryxContext_Call) Return(_a0 *sqlx.Rows, _a1 error) *TxBuilder_QueryxContext_Call
func (*TxBuilder_QueryxContext_Call) Run ¶
func (_c *TxBuilder_QueryxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *TxBuilder_QueryxContext_Call
func (*TxBuilder_QueryxContext_Call) RunAndReturn ¶
func (_c *TxBuilder_QueryxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *TxBuilder_QueryxContext_Call
type TxBuilder_Rollback_Call ¶
TxBuilder_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*TxBuilder_Rollback_Call) Return ¶
func (_c *TxBuilder_Rollback_Call) Return(_a0 error) *TxBuilder_Rollback_Call
func (*TxBuilder_Rollback_Call) Run ¶
func (_c *TxBuilder_Rollback_Call) Run(run func()) *TxBuilder_Rollback_Call
func (*TxBuilder_Rollback_Call) RunAndReturn ¶
func (_c *TxBuilder_Rollback_Call) RunAndReturn(run func() error) *TxBuilder_Rollback_Call
type TxBuilder_SelectContext_Call ¶
TxBuilder_SelectContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectContext'
func (*TxBuilder_SelectContext_Call) Return ¶
func (_c *TxBuilder_SelectContext_Call) Return(_a0 error) *TxBuilder_SelectContext_Call
func (*TxBuilder_SelectContext_Call) Run ¶
func (_c *TxBuilder_SelectContext_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *TxBuilder_SelectContext_Call
func (*TxBuilder_SelectContext_Call) RunAndReturn ¶
func (_c *TxBuilder_SelectContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *TxBuilder_SelectContext_Call
type Tx_Commit_Call ¶
Tx_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Tx_Commit_Call) Return ¶
func (_c *Tx_Commit_Call) Return(_a0 error) *Tx_Commit_Call
func (*Tx_Commit_Call) Run ¶
func (_c *Tx_Commit_Call) Run(run func()) *Tx_Commit_Call
func (*Tx_Commit_Call) RunAndReturn ¶
func (_c *Tx_Commit_Call) RunAndReturn(run func() error) *Tx_Commit_Call
type Tx_Delete_Call ¶
Tx_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Tx_Delete_Call) Return ¶
func (_c *Tx_Delete_Call) Return(_a0 *db.Result, _a1 error) *Tx_Delete_Call
func (*Tx_Delete_Call) Run ¶
func (_c *Tx_Delete_Call) Run(run func(sql string, args ...interface{})) *Tx_Delete_Call
func (*Tx_Delete_Call) RunAndReturn ¶
func (_c *Tx_Delete_Call) RunAndReturn(run func(string, ...interface{}) (*db.Result, error)) *Tx_Delete_Call
type Tx_Expecter ¶
type Tx_Expecter struct {
// contains filtered or unexported fields
}
func (*Tx_Expecter) Commit ¶
func (_e *Tx_Expecter) Commit() *Tx_Commit_Call
Commit is a helper method to define mock.On call
func (*Tx_Expecter) Delete ¶
func (_e *Tx_Expecter) Delete(sql interface{}, args ...interface{}) *Tx_Delete_Call
Delete is a helper method to define mock.On call
- sql string
- args ...interface{}
func (*Tx_Expecter) Insert ¶
func (_e *Tx_Expecter) Insert(sql interface{}, args ...interface{}) *Tx_Insert_Call
Insert is a helper method to define mock.On call
- sql string
- args ...interface{}
func (*Tx_Expecter) Rollback ¶
func (_e *Tx_Expecter) Rollback() *Tx_Rollback_Call
Rollback is a helper method to define mock.On call
func (*Tx_Expecter) Select ¶
func (_e *Tx_Expecter) Select(dest interface{}, sql interface{}, args ...interface{}) *Tx_Select_Call
Select is a helper method to define mock.On call
- dest interface{}
- sql string
- args ...interface{}
func (*Tx_Expecter) Statement ¶
func (_e *Tx_Expecter) Statement(sql interface{}, args ...interface{}) *Tx_Statement_Call
Statement is a helper method to define mock.On call
- sql string
- args ...interface{}
func (*Tx_Expecter) Table ¶
func (_e *Tx_Expecter) Table(name interface{}) *Tx_Table_Call
Table is a helper method to define mock.On call
- name string
func (*Tx_Expecter) Update ¶
func (_e *Tx_Expecter) Update(sql interface{}, args ...interface{}) *Tx_Update_Call
Update is a helper method to define mock.On call
- sql string
- args ...interface{}
type Tx_Insert_Call ¶
Tx_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*Tx_Insert_Call) Return ¶
func (_c *Tx_Insert_Call) Return(_a0 *db.Result, _a1 error) *Tx_Insert_Call
func (*Tx_Insert_Call) Run ¶
func (_c *Tx_Insert_Call) Run(run func(sql string, args ...interface{})) *Tx_Insert_Call
func (*Tx_Insert_Call) RunAndReturn ¶
func (_c *Tx_Insert_Call) RunAndReturn(run func(string, ...interface{}) (*db.Result, error)) *Tx_Insert_Call
type Tx_Rollback_Call ¶
Tx_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*Tx_Rollback_Call) Return ¶
func (_c *Tx_Rollback_Call) Return(_a0 error) *Tx_Rollback_Call
func (*Tx_Rollback_Call) Run ¶
func (_c *Tx_Rollback_Call) Run(run func()) *Tx_Rollback_Call
func (*Tx_Rollback_Call) RunAndReturn ¶
func (_c *Tx_Rollback_Call) RunAndReturn(run func() error) *Tx_Rollback_Call
type Tx_Select_Call ¶
Tx_Select_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Select'
func (*Tx_Select_Call) Return ¶
func (_c *Tx_Select_Call) Return(_a0 error) *Tx_Select_Call
func (*Tx_Select_Call) Run ¶
func (_c *Tx_Select_Call) Run(run func(dest interface{}, sql string, args ...interface{})) *Tx_Select_Call
func (*Tx_Select_Call) RunAndReturn ¶
func (_c *Tx_Select_Call) RunAndReturn(run func(interface{}, string, ...interface{}) error) *Tx_Select_Call
type Tx_Statement_Call ¶
Tx_Statement_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Statement'
func (*Tx_Statement_Call) Return ¶
func (_c *Tx_Statement_Call) Return(_a0 error) *Tx_Statement_Call
func (*Tx_Statement_Call) Run ¶
func (_c *Tx_Statement_Call) Run(run func(sql string, args ...interface{})) *Tx_Statement_Call
func (*Tx_Statement_Call) RunAndReturn ¶
func (_c *Tx_Statement_Call) RunAndReturn(run func(string, ...interface{}) error) *Tx_Statement_Call
type Tx_Table_Call ¶
Tx_Table_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Table'
func (*Tx_Table_Call) Return ¶
func (_c *Tx_Table_Call) Return(_a0 db.Query) *Tx_Table_Call
func (*Tx_Table_Call) Run ¶
func (_c *Tx_Table_Call) Run(run func(name string)) *Tx_Table_Call
func (*Tx_Table_Call) RunAndReturn ¶
func (_c *Tx_Table_Call) RunAndReturn(run func(string) db.Query) *Tx_Table_Call
type Tx_Update_Call ¶
Tx_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Tx_Update_Call) Return ¶
func (_c *Tx_Update_Call) Return(_a0 *db.Result, _a1 error) *Tx_Update_Call
func (*Tx_Update_Call) Run ¶
func (_c *Tx_Update_Call) Run(run func(sql string, args ...interface{})) *Tx_Update_Call
func (*Tx_Update_Call) RunAndReturn ¶
func (_c *Tx_Update_Call) RunAndReturn(run func(string, ...interface{}) (*db.Result, error)) *Tx_Update_Call