db

package
v1.16.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	mock.Mock
}

Builder is an autogenerated mock type for the Builder type

func NewBuilder

func NewBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Builder

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) Beginx

func (_m *Builder) Beginx() (*sqlx.Tx, error)

Beginx provides a mock function with no fields

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) Explain

func (_m *Builder) Explain(_a0 string, args ...interface{}) string

Explain provides a mock function with given fields: _a0, 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

func (*Builder) QueryxContext

func (_m *Builder) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)

QueryxContext provides a mock function with given fields: ctx, query, args

func (*Builder) SelectContext

func (_m *Builder) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext provides a mock function with given fields: ctx, dest, query, args

type Builder_Beginx_Call

type Builder_Beginx_Call struct {
	*mock.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

type Builder_ExecContext_Call struct {
	*mock.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 (*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

type Builder_Explain_Call struct {
	*mock.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 (*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

type Builder_GetContext_Call struct {
	*mock.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 (*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

type Builder_QueryxContext_Call struct {
	*mock.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 (*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

type Builder_SelectContext_Call struct {
	*mock.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 (*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

type CommonBuilder struct {
	mock.Mock
}

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

type CommonBuilder_ExecContext_Call struct {
	*mock.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 (*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

type CommonBuilder_Explain_Call struct {
	*mock.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 (*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

type CommonBuilder_GetContext_Call struct {
	*mock.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 (*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

type CommonBuilder_QueryxContext_Call struct {
	*mock.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 (*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

type CommonBuilder_SelectContext_Call struct {
	*mock.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 (*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

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB

func NewDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *DB

NewDB creates a new instance of DB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DB) BeginTransaction

func (_m *DB) BeginTransaction() (db.Tx, error)

BeginTransaction provides a mock function with no fields

func (*DB) Commit

func (_m *DB) Commit() error

Commit provides a mock function with no fields

func (*DB) Connection

func (_m *DB) Connection(name string) db.DB

Connection provides a mock function with given fields: name

func (*DB) Delete

func (_m *DB) Delete(sql string, args ...interface{}) (*db.Result, error)

Delete provides a mock function with given fields: sql, args

func (*DB) EXPECT

func (_m *DB) EXPECT() *DB_Expecter

func (*DB) Insert

func (_m *DB) Insert(sql string, args ...interface{}) (*db.Result, error)

Insert provides a mock function with given fields: sql, args

func (*DB) Rollback

func (_m *DB) Rollback() error

Rollback provides a mock function with no fields

func (*DB) Select

func (_m *DB) Select(dest interface{}, sql string, args ...interface{}) error

Select provides a mock function with given fields: dest, sql, args

func (*DB) Statement

func (_m *DB) Statement(sql string, args ...interface{}) error

Statement provides a mock function with given fields: sql, args

func (*DB) Table

func (_m *DB) Table(name string) db.Query

Table provides a mock function with given fields: name

func (*DB) Transaction

func (_m *DB) Transaction(txFunc func(db.Tx) error) error

Transaction provides a mock function with given fields: txFunc

func (*DB) Update

func (_m *DB) Update(sql string, args ...interface{}) (*db.Result, error)

Update provides a mock function with given fields: sql, args

func (*DB) WithContext

func (_m *DB) WithContext(ctx context.Context) db.DB

WithContext provides a mock function with given fields: ctx

type DB_BeginTransaction_Call

type DB_BeginTransaction_Call struct {
	*mock.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 (*DB_BeginTransaction_Call) Run

func (*DB_BeginTransaction_Call) RunAndReturn

func (_c *DB_BeginTransaction_Call) RunAndReturn(run func() (db.Tx, error)) *DB_BeginTransaction_Call

type DB_Commit_Call

type DB_Commit_Call struct {
	*mock.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

type DB_Connection_Call struct {
	*mock.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

type DB_Delete_Call struct {
	*mock.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

type DB_Insert_Call struct {
	*mock.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

type DB_Rollback_Call struct {
	*mock.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

type DB_Select_Call struct {
	*mock.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

type DB_Statement_Call struct {
	*mock.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

type DB_Table_Call struct {
	*mock.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

type DB_Transaction_Call struct {
	*mock.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 (*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

type DB_Update_Call struct {
	*mock.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

type DB_WithContext_Call struct {
	*mock.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

type Query struct {
	mock.Mock
}

Query is an autogenerated mock type for the Query type

func NewQuery

func NewQuery(t interface {
	mock.TestingT
	Cleanup(func())
}) *Query

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) Chunk

func (_m *Query) Chunk(size uint64, callback func([]db.Row) error) error

Chunk provides a mock function with given fields: size, callback

func (*Query) Count

func (_m *Query) Count() (int64, error)

Count provides a mock function with no fields

func (*Query) CrossJoin

func (_m *Query) CrossJoin(query string, args ...interface{}) db.Query

CrossJoin provides a mock function with given fields: query, args

func (*Query) Cursor

func (_m *Query) Cursor() chan db.Row

Cursor provides a mock function with no fields

func (*Query) Decrement

func (_m *Query) Decrement(column string, value ...uint64) error

Decrement provides a mock function with given fields: column, value

func (*Query) Delete

func (_m *Query) Delete() (*db.Result, error)

Delete provides a mock function with no fields

func (*Query) Distinct

func (_m *Query) Distinct(columns ...string) db.Query

Distinct provides a mock function with given fields: columns

func (*Query) DoesntExist

func (_m *Query) DoesntExist() (bool, error)

DoesntExist provides a mock function with no fields

func (*Query) EXPECT

func (_m *Query) EXPECT() *Query_Expecter

func (*Query) Each

func (_m *Query) Each(callback func(db.Row) error) error

Each provides a mock function with given fields: callback

func (*Query) Exists

func (_m *Query) Exists() (bool, error)

Exists provides a mock function with no fields

func (*Query) Find

func (_m *Query) Find(dest interface{}, conds ...interface{}) error

Find provides a mock function with given fields: dest, conds

func (*Query) FindOrFail

func (_m *Query) FindOrFail(dest interface{}, conds ...interface{}) error

FindOrFail provides a mock function with given fields: dest, conds

func (*Query) First

func (_m *Query) First(dest interface{}) error

First provides a mock function with given fields: dest

func (*Query) FirstOr

func (_m *Query) FirstOr(dest interface{}, callback func() error) error

FirstOr provides a mock function with given fields: dest, callback

func (*Query) FirstOrFail

func (_m *Query) FirstOrFail(dest interface{}) error

FirstOrFail provides a mock function with given fields: dest

func (*Query) Get

func (_m *Query) Get(dest interface{}) error

Get provides a mock function with given fields: dest

func (*Query) GroupBy

func (_m *Query) GroupBy(column ...string) db.Query

GroupBy provides a mock function with given fields: column

func (*Query) Having

func (_m *Query) Having(query interface{}, args ...interface{}) db.Query

Having provides a mock function with given fields: query, args

func (*Query) InRandomOrder

func (_m *Query) InRandomOrder() db.Query

InRandomOrder provides a mock function with no fields

func (*Query) Increment

func (_m *Query) Increment(column string, value ...uint64) error

Increment provides a mock function with given fields: column, value

func (*Query) Insert

func (_m *Query) Insert(data interface{}) (*db.Result, error)

Insert provides a mock function with given fields: data

func (*Query) InsertGetID

func (_m *Query) InsertGetID(data interface{}) (int64, error)

InsertGetID provides a mock function with given fields: data

func (*Query) Join

func (_m *Query) Join(query string, args ...interface{}) db.Query

Join provides a mock function with given fields: query, args

func (*Query) Latest

func (_m *Query) Latest(column ...string) db.Query

Latest provides a mock function with given fields: column

func (*Query) LeftJoin

func (_m *Query) LeftJoin(query string, args ...interface{}) db.Query

LeftJoin provides a mock function with given fields: query, args

func (*Query) Limit

func (_m *Query) Limit(limit uint64) db.Query

Limit provides a mock function with given fields: limit

func (*Query) LockForUpdate

func (_m *Query) LockForUpdate() db.Query

LockForUpdate provides a mock function with no fields

func (*Query) Offset

func (_m *Query) Offset(offset uint64) db.Query

Offset provides a mock function with given fields: offset

func (*Query) OrWhere

func (_m *Query) OrWhere(query interface{}, args ...interface{}) db.Query

OrWhere provides a mock function with given fields: query, args

func (*Query) OrWhereBetween

func (_m *Query) OrWhereBetween(column string, x interface{}, y interface{}) db.Query

OrWhereBetween provides a mock function with given fields: column, x, y

func (*Query) OrWhereColumn

func (_m *Query) OrWhereColumn(column1 string, column2 ...string) db.Query

OrWhereColumn provides a mock function with given fields: column1, column2

func (*Query) OrWhereIn

func (_m *Query) OrWhereIn(column string, values []interface{}) db.Query

OrWhereIn provides a mock function with given fields: column, values

func (*Query) OrWhereJsonContains

func (_m *Query) OrWhereJsonContains(column string, value interface{}) db.Query

OrWhereJsonContains provides a mock function with given fields: column, value

func (*Query) OrWhereJsonContainsKey

func (_m *Query) OrWhereJsonContainsKey(column string) db.Query

OrWhereJsonContainsKey provides a mock function with given fields: column

func (*Query) OrWhereJsonDoesntContain

func (_m *Query) OrWhereJsonDoesntContain(column string, value interface{}) db.Query

OrWhereJsonDoesntContain provides a mock function with given fields: column, value

func (*Query) OrWhereJsonDoesntContainKey

func (_m *Query) OrWhereJsonDoesntContainKey(column string) db.Query

OrWhereJsonDoesntContainKey provides a mock function with given fields: column

func (*Query) OrWhereJsonLength

func (_m *Query) OrWhereJsonLength(column string, length int) db.Query

OrWhereJsonLength provides a mock function with given fields: column, length

func (*Query) OrWhereLike

func (_m *Query) OrWhereLike(column string, value string) db.Query

OrWhereLike provides a mock function with given fields: column, value

func (*Query) OrWhereNot

func (_m *Query) OrWhereNot(query interface{}, args ...interface{}) db.Query

OrWhereNot provides a mock function with given fields: query, args

func (*Query) OrWhereNotBetween

func (_m *Query) OrWhereNotBetween(column string, x interface{}, y interface{}) db.Query

OrWhereNotBetween provides a mock function with given fields: column, x, y

func (*Query) OrWhereNotIn

func (_m *Query) OrWhereNotIn(column string, values []interface{}) db.Query

OrWhereNotIn provides a mock function with given fields: column, values

func (*Query) OrWhereNotLike

func (_m *Query) OrWhereNotLike(column string, value string) db.Query

OrWhereNotLike provides a mock function with given fields: column, value

func (*Query) OrWhereNotNull

func (_m *Query) OrWhereNotNull(column string) db.Query

OrWhereNotNull provides a mock function with given fields: column

func (*Query) OrWhereNull

func (_m *Query) OrWhereNull(column string) db.Query

OrWhereNull provides a mock function with given fields: column

func (*Query) OrWhereRaw

func (_m *Query) OrWhereRaw(raw string, args []interface{}) db.Query

OrWhereRaw provides a mock function with given fields: raw, args

func (*Query) OrderBy

func (_m *Query) OrderBy(column string, directions ...string) db.Query

OrderBy provides a mock function with given fields: column, directions

func (*Query) OrderByDesc

func (_m *Query) OrderByDesc(column string) db.Query

OrderByDesc provides a mock function with given fields: column

func (*Query) OrderByRaw

func (_m *Query) OrderByRaw(raw string) db.Query

OrderByRaw provides a mock function with given fields: raw

func (*Query) Paginate

func (_m *Query) Paginate(page int, limit int, dest interface{}, total *int64) error

Paginate provides a mock function with given fields: page, limit, dest, total

func (*Query) Pluck

func (_m *Query) Pluck(column string, dest interface{}) error

Pluck provides a mock function with given fields: column, dest

func (*Query) RightJoin

func (_m *Query) RightJoin(query string, args ...interface{}) db.Query

RightJoin provides a mock function with given fields: query, args

func (*Query) Select

func (_m *Query) Select(columns ...string) db.Query

Select provides a mock function with given fields: columns

func (*Query) SharedLock

func (_m *Query) SharedLock() db.Query

SharedLock provides a mock function with no fields

func (*Query) Sum

func (_m *Query) Sum(column string) (int64, error)

Sum provides a mock function with given fields: column

func (*Query) ToRawSql

func (_m *Query) ToRawSql() db.ToSql

ToRawSql provides a mock function with no fields

func (*Query) ToSql

func (_m *Query) ToSql() db.ToSql

ToSql provides a mock function with no fields

func (*Query) Update

func (_m *Query) Update(column interface{}, value ...interface{}) (*db.Result, error)

Update provides a mock function with given fields: column, value

func (*Query) UpdateOrInsert

func (_m *Query) UpdateOrInsert(attributes interface{}, values interface{}) (*db.Result, error)

UpdateOrInsert provides a mock function with given fields: attributes, values

func (*Query) Value

func (_m *Query) Value(column string, dest interface{}) error

Value provides a mock function with given fields: column, dest

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) Where

func (_m *Query) Where(query interface{}, args ...interface{}) db.Query

Where provides a mock function with given fields: query, args

func (*Query) WhereBetween

func (_m *Query) WhereBetween(column string, x interface{}, y interface{}) db.Query

WhereBetween provides a mock function with given fields: column, x, y

func (*Query) WhereColumn

func (_m *Query) WhereColumn(column1 string, column2 ...string) db.Query

WhereColumn provides a mock function with given fields: column1, column2

func (*Query) WhereExists

func (_m *Query) WhereExists(_a0 func() db.Query) db.Query

WhereExists provides a mock function with given fields: _a0

func (*Query) WhereIn

func (_m *Query) WhereIn(column string, values []interface{}) db.Query

WhereIn provides a mock function with given fields: column, values

func (*Query) WhereJsonContains

func (_m *Query) WhereJsonContains(column string, value interface{}) db.Query

WhereJsonContains provides a mock function with given fields: column, value

func (*Query) WhereJsonContainsKey

func (_m *Query) WhereJsonContainsKey(column string) db.Query

WhereJsonContainsKey provides a mock function with given fields: column

func (*Query) WhereJsonDoesntContain

func (_m *Query) WhereJsonDoesntContain(column string, value interface{}) db.Query

WhereJsonDoesntContain provides a mock function with given fields: column, value

func (*Query) WhereJsonDoesntContainKey

func (_m *Query) WhereJsonDoesntContainKey(column string) db.Query

WhereJsonDoesntContainKey provides a mock function with given fields: column

func (*Query) WhereJsonLength

func (_m *Query) WhereJsonLength(column string, length int) db.Query

WhereJsonLength provides a mock function with given fields: column, length

func (*Query) WhereLike

func (_m *Query) WhereLike(column string, value string) db.Query

WhereLike provides a mock function with given fields: column, value

func (*Query) WhereNot

func (_m *Query) WhereNot(query interface{}, args ...interface{}) db.Query

WhereNot provides a mock function with given fields: query, args

func (*Query) WhereNotBetween

func (_m *Query) WhereNotBetween(column string, x interface{}, y interface{}) db.Query

WhereNotBetween provides a mock function with given fields: column, x, y

func (*Query) WhereNotIn

func (_m *Query) WhereNotIn(column string, values []interface{}) db.Query

WhereNotIn provides a mock function with given fields: column, values

func (*Query) WhereNotLike

func (_m *Query) WhereNotLike(column string, value string) db.Query

WhereNotLike provides a mock function with given fields: column, value

func (*Query) WhereNotNull

func (_m *Query) WhereNotNull(column string) db.Query

WhereNotNull provides a mock function with given fields: column

func (*Query) WhereNull

func (_m *Query) WhereNull(column string) db.Query

WhereNull provides a mock function with given fields: column

func (*Query) WhereRaw

func (_m *Query) WhereRaw(raw string, args []interface{}) db.Query

WhereRaw provides a mock function with given fields: raw, args

type Query_Chunk_Call

type Query_Chunk_Call struct {
	*mock.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

type Query_Count_Call struct {
	*mock.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

type Query_CrossJoin_Call struct {
	*mock.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 (*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

type Query_Cursor_Call struct {
	*mock.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

type Query_Decrement_Call struct {
	*mock.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 (*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

type Query_Delete_Call struct {
	*mock.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

type Query_Distinct_Call struct {
	*mock.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 (*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

type Query_DoesntExist_Call struct {
	*mock.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 (*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

type Query_Each_Call struct {
	*mock.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

type Query_Exists_Call struct {
	*mock.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

type Query_FindOrFail_Call struct {
	*mock.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 (*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

type Query_Find_Call struct {
	*mock.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

type Query_FirstOrFail_Call struct {
	*mock.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 (*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

type Query_FirstOr_Call struct {
	*mock.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

type Query_First_Call struct {
	*mock.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

type Query_Get_Call struct {
	*mock.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

type Query_GroupBy_Call struct {
	*mock.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

type Query_Having_Call struct {
	*mock.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

type Query_InRandomOrder_Call struct {
	*mock.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 (*Query_InRandomOrder_Call) Run

func (*Query_InRandomOrder_Call) RunAndReturn

func (_c *Query_InRandomOrder_Call) RunAndReturn(run func() db.Query) *Query_InRandomOrder_Call

type Query_Increment_Call

type Query_Increment_Call struct {
	*mock.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 (*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

type Query_InsertGetID_Call struct {
	*mock.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 (*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

type Query_Insert_Call struct {
	*mock.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

type Query_Join_Call struct {
	*mock.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

type Query_Latest_Call struct {
	*mock.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

type Query_LeftJoin_Call struct {
	*mock.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 (*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

type Query_Limit_Call struct {
	*mock.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

type Query_LockForUpdate_Call struct {
	*mock.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 (*Query_LockForUpdate_Call) Run

func (*Query_LockForUpdate_Call) RunAndReturn

func (_c *Query_LockForUpdate_Call) RunAndReturn(run func() db.Query) *Query_LockForUpdate_Call

type Query_Offset_Call

type Query_Offset_Call struct {
	*mock.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

type Query_OrWhereBetween_Call struct {
	*mock.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 (*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

type Query_OrWhereColumn_Call struct {
	*mock.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 (*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

type Query_OrWhereIn_Call struct {
	*mock.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 (*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

type Query_OrWhereJsonContainsKey_Call struct {
	*mock.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 (*Query_OrWhereJsonContainsKey_Call) Run

func (*Query_OrWhereJsonContainsKey_Call) RunAndReturn

type Query_OrWhereJsonContains_Call

type Query_OrWhereJsonContains_Call struct {
	*mock.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 (*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

type Query_OrWhereJsonDoesntContainKey_Call struct {
	*mock.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 (*Query_OrWhereJsonDoesntContainKey_Call) Run

func (*Query_OrWhereJsonDoesntContainKey_Call) RunAndReturn

type Query_OrWhereJsonDoesntContain_Call

type Query_OrWhereJsonDoesntContain_Call struct {
	*mock.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 (*Query_OrWhereJsonDoesntContain_Call) Run

func (_c *Query_OrWhereJsonDoesntContain_Call) Run(run func(column string, value interface{})) *Query_OrWhereJsonDoesntContain_Call

func (*Query_OrWhereJsonDoesntContain_Call) RunAndReturn

type Query_OrWhereJsonLength_Call

type Query_OrWhereJsonLength_Call struct {
	*mock.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 (*Query_OrWhereJsonLength_Call) Run

func (_c *Query_OrWhereJsonLength_Call) Run(run func(column string, length int)) *Query_OrWhereJsonLength_Call

func (*Query_OrWhereJsonLength_Call) RunAndReturn

type Query_OrWhereLike_Call

type Query_OrWhereLike_Call struct {
	*mock.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 (*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

type Query_OrWhereNotBetween_Call struct {
	*mock.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 (*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

type Query_OrWhereNotIn_Call struct {
	*mock.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 (*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

type Query_OrWhereNotLike_Call struct {
	*mock.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 (*Query_OrWhereNotLike_Call) Run

func (_c *Query_OrWhereNotLike_Call) Run(run func(column string, value string)) *Query_OrWhereNotLike_Call

func (*Query_OrWhereNotLike_Call) RunAndReturn

type Query_OrWhereNotNull_Call

type Query_OrWhereNotNull_Call struct {
	*mock.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 (*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

type Query_OrWhereNot_Call struct {
	*mock.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 (*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

type Query_OrWhereNull_Call struct {
	*mock.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 (*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

type Query_OrWhereRaw_Call struct {
	*mock.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 (*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

type Query_OrWhere_Call struct {
	*mock.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

type Query_OrderByDesc_Call struct {
	*mock.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 (*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

type Query_OrderByRaw_Call struct {
	*mock.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 (*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

type Query_OrderBy_Call struct {
	*mock.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

type Query_Paginate_Call struct {
	*mock.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 (*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

type Query_Pluck_Call struct {
	*mock.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

type Query_RightJoin_Call struct {
	*mock.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 (*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

type Query_Select_Call struct {
	*mock.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 {
	*mock.Call
}

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 (*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

type Query_Sum_Call struct {
	*mock.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

type Query_ToRawSql_Call struct {
	*mock.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 (*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

type Query_ToSql_Call struct {
	*mock.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

type Query_UpdateOrInsert_Call struct {
	*mock.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 (*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

type Query_Update_Call struct {
	*mock.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

type Query_Value_Call struct {
	*mock.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

type Query_When_Call struct {
	*mock.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) Run

func (_c *Query_When_Call) Run(run func(condition bool, callback func(db.Query) db.Query, falseCallback ...func(db.Query) db.Query)) *Query_When_Call

func (*Query_When_Call) RunAndReturn

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

type Query_WhereBetween_Call struct {
	*mock.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 (*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

type Query_WhereColumn_Call struct {
	*mock.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 (*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

type Query_WhereExists_Call struct {
	*mock.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 (*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

type Query_WhereIn_Call struct {
	*mock.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

type Query_WhereJsonContainsKey_Call struct {
	*mock.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 (*Query_WhereJsonContainsKey_Call) Run

func (*Query_WhereJsonContainsKey_Call) RunAndReturn

type Query_WhereJsonContains_Call

type Query_WhereJsonContains_Call struct {
	*mock.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 (*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

type Query_WhereJsonDoesntContainKey_Call struct {
	*mock.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 (*Query_WhereJsonDoesntContainKey_Call) Run

func (*Query_WhereJsonDoesntContainKey_Call) RunAndReturn

type Query_WhereJsonDoesntContain_Call

type Query_WhereJsonDoesntContain_Call struct {
	*mock.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 (*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

type Query_WhereJsonLength_Call struct {
	*mock.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 (*Query_WhereJsonLength_Call) Run

func (_c *Query_WhereJsonLength_Call) Run(run func(column string, length int)) *Query_WhereJsonLength_Call

func (*Query_WhereJsonLength_Call) RunAndReturn

type Query_WhereLike_Call

type Query_WhereLike_Call struct {
	*mock.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 (*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

type Query_WhereNotBetween_Call struct {
	*mock.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 (*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

type Query_WhereNotIn_Call struct {
	*mock.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 (*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

type Query_WhereNotLike_Call struct {
	*mock.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 (*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

type Query_WhereNotNull_Call struct {
	*mock.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 (*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

type Query_WhereNot_Call struct {
	*mock.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 (*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

type Query_WhereNull_Call struct {
	*mock.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 (*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

type Query_WhereRaw_Call struct {
	*mock.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 (*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

type Query_Where_Call struct {
	*mock.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

type Row struct {
	mock.Mock
}

Row is an autogenerated mock type for the Row type

func NewRow

func NewRow(t interface {
	mock.TestingT
	Cleanup(func())
}) *Row

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

func (*Row) Err

func (_m *Row) Err() error

Err provides a mock function with no fields

func (*Row) Scan

func (_m *Row) Scan(value interface{}) error

Scan provides a mock function with given fields: value

type Row_Err_Call

type Row_Err_Call struct {
	*mock.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

type Row_Scan_Call struct {
	*mock.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

type ToSql struct {
	mock.Mock
}

ToSql is an autogenerated mock type for the ToSql type

func NewToSql

func NewToSql(t interface {
	mock.TestingT
	Cleanup(func())
}) *ToSql

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) Count

func (_m *ToSql) Count() string

Count provides a mock function with no fields

func (*ToSql) Delete

func (_m *ToSql) Delete() string

Delete provides a mock function with no fields

func (*ToSql) EXPECT

func (_m *ToSql) EXPECT() *ToSql_Expecter

func (*ToSql) First

func (_m *ToSql) First() string

First provides a mock function with no fields

func (*ToSql) Get

func (_m *ToSql) Get() string

Get provides a mock function with no fields

func (*ToSql) Insert

func (_m *ToSql) Insert(data interface{}) string

Insert provides a mock function with given fields: data

func (*ToSql) Pluck

func (_m *ToSql) Pluck(column string, dest interface{}) string

Pluck provides a mock function with given fields: column, dest

func (*ToSql) Update

func (_m *ToSql) Update(column interface{}, value ...interface{}) string

Update provides a mock function with given fields: column, value

type ToSql_Count_Call

type ToSql_Count_Call struct {
	*mock.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

type ToSql_Delete_Call struct {
	*mock.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

type ToSql_First_Call struct {
	*mock.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

type ToSql_Get_Call struct {
	*mock.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

type ToSql_Insert_Call struct {
	*mock.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

type ToSql_Pluck_Call struct {
	*mock.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

type ToSql_Update_Call struct {
	*mock.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

type Tx struct {
	mock.Mock
}

Tx is an autogenerated mock type for the Tx type

func NewTx

func NewTx(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tx

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) Commit

func (_m *Tx) Commit() error

Commit provides a mock function with no fields

func (*Tx) Delete

func (_m *Tx) Delete(sql string, args ...interface{}) (*db.Result, error)

Delete provides a mock function with given fields: sql, args

func (*Tx) EXPECT

func (_m *Tx) EXPECT() *Tx_Expecter

func (*Tx) Insert

func (_m *Tx) Insert(sql string, args ...interface{}) (*db.Result, error)

Insert provides a mock function with given fields: sql, args

func (*Tx) Rollback

func (_m *Tx) Rollback() error

Rollback provides a mock function with no fields

func (*Tx) Select

func (_m *Tx) Select(dest interface{}, sql string, args ...interface{}) error

Select provides a mock function with given fields: dest, sql, args

func (*Tx) Statement

func (_m *Tx) Statement(sql string, args ...interface{}) error

Statement provides a mock function with given fields: sql, args

func (*Tx) Table

func (_m *Tx) Table(name string) db.Query

Table provides a mock function with given fields: name

func (*Tx) Update

func (_m *Tx) Update(sql string, args ...interface{}) (*db.Result, error)

Update provides a mock function with given fields: sql, args

type TxBuilder

type TxBuilder struct {
	mock.Mock
}

TxBuilder is an autogenerated mock type for the TxBuilder type

func NewTxBuilder

func NewTxBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *TxBuilder

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) Commit

func (_m *TxBuilder) Commit() error

Commit provides a mock function with no fields

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) Explain

func (_m *TxBuilder) Explain(_a0 string, args ...interface{}) string

Explain provides a mock function with given fields: _a0, 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

func (*TxBuilder) Rollback

func (_m *TxBuilder) Rollback() error

Rollback provides a mock function with no fields

func (*TxBuilder) SelectContext

func (_m *TxBuilder) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext provides a mock function with given fields: ctx, dest, query, args

type TxBuilder_Commit_Call

type TxBuilder_Commit_Call struct {
	*mock.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 (*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

type TxBuilder_ExecContext_Call struct {
	*mock.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 (*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

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

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

type TxBuilder_Explain_Call struct {
	*mock.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 (*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

type TxBuilder_GetContext_Call struct {
	*mock.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 (*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

type TxBuilder_QueryxContext_Call struct {
	*mock.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 (*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

type TxBuilder_Rollback_Call struct {
	*mock.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 (*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

type TxBuilder_SelectContext_Call struct {
	*mock.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 (*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

type Tx_Commit_Call struct {
	*mock.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

type Tx_Delete_Call struct {
	*mock.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

type Tx_Insert_Call struct {
	*mock.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

type Tx_Rollback_Call struct {
	*mock.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

type Tx_Select_Call struct {
	*mock.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

type Tx_Statement_Call struct {
	*mock.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

type Tx_Table_Call struct {
	*mock.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

type Tx_Update_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL