Documentation ¶
Index ¶
- type Client
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (_m *Client) Get(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (_m *Client) GetResult(ctx context.Context, query string, args ...interface{}) (*db.Result, error)
- func (_m *Client) GetSingleScalarValue(ctx context.Context, query string, args ...interface{}) (int, error)
- func (_m *Client) Prepare(ctx context.Context, query string) (*sql.Stmt, error)
- func (_m *Client) Query(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Client) QueryRow(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (_m *Client) Queryx(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
- func (_m *Client) Select(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (_m *Client) WithTx(ctx context.Context, ops *sql.TxOptions, ...) error
- type Client_Exec_Call
- func (_c *Client_Exec_Call) Return(_a0 sql.Result, _a1 error) *Client_Exec_Call
- func (_c *Client_Exec_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Exec_Call
- func (_c *Client_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Client_Exec_Call
- type Client_Expecter
- func (_e *Client_Expecter) Exec(ctx interface{}, query interface{}, args ...interface{}) *Client_Exec_Call
- func (_e *Client_Expecter) Get(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Client_Get_Call
- func (_e *Client_Expecter) GetResult(ctx interface{}, query interface{}, args ...interface{}) *Client_GetResult_Call
- func (_e *Client_Expecter) GetSingleScalarValue(ctx interface{}, query interface{}, args ...interface{}) *Client_GetSingleScalarValue_Call
- func (_e *Client_Expecter) Prepare(ctx interface{}, query interface{}) *Client_Prepare_Call
- func (_e *Client_Expecter) Query(ctx interface{}, query interface{}, args ...interface{}) *Client_Query_Call
- func (_e *Client_Expecter) QueryRow(ctx interface{}, query interface{}, args ...interface{}) *Client_QueryRow_Call
- func (_e *Client_Expecter) Queryx(ctx interface{}, query interface{}, args ...interface{}) *Client_Queryx_Call
- func (_e *Client_Expecter) Select(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Client_Select_Call
- func (_e *Client_Expecter) WithTx(ctx interface{}, ops interface{}, do interface{}) *Client_WithTx_Call
- type Client_GetResult_Call
- func (_c *Client_GetResult_Call) Return(_a0 *db.Result, _a1 error) *Client_GetResult_Call
- func (_c *Client_GetResult_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_GetResult_Call
- func (_c *Client_GetResult_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*db.Result, error)) *Client_GetResult_Call
- type Client_GetSingleScalarValue_Call
- func (_c *Client_GetSingleScalarValue_Call) Return(_a0 int, _a1 error) *Client_GetSingleScalarValue_Call
- func (_c *Client_GetSingleScalarValue_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_GetSingleScalarValue_Call
- func (_c *Client_GetSingleScalarValue_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (int, error)) *Client_GetSingleScalarValue_Call
- type Client_Get_Call
- type Client_Prepare_Call
- func (_c *Client_Prepare_Call) Return(_a0 *sql.Stmt, _a1 error) *Client_Prepare_Call
- func (_c *Client_Prepare_Call) Run(run func(ctx context.Context, query string)) *Client_Prepare_Call
- func (_c *Client_Prepare_Call) RunAndReturn(run func(context.Context, string) (*sql.Stmt, error)) *Client_Prepare_Call
- type Client_QueryRow_Call
- func (_c *Client_QueryRow_Call) Return(_a0 *sql.Row) *Client_QueryRow_Call
- func (_c *Client_QueryRow_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_QueryRow_Call
- func (_c *Client_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Client_QueryRow_Call
- type Client_Query_Call
- func (_c *Client_Query_Call) Return(_a0 *sql.Rows, _a1 error) *Client_Query_Call
- func (_c *Client_Query_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Query_Call
- func (_c *Client_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Client_Query_Call
- type Client_Queryx_Call
- func (_c *Client_Queryx_Call) Return(_a0 *sqlx.Rows, _a1 error) *Client_Queryx_Call
- func (_c *Client_Queryx_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Queryx_Call
- func (_c *Client_Queryx_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *Client_Queryx_Call
- type Client_Select_Call
- type Client_WithTx_Call
- type QueryBuilder
- func (_m *QueryBuilder) EXPECT() *QueryBuilder_Expecter
- func (_m *QueryBuilder) GroupBy(field ...string) db.QueryBuilder
- func (_m *QueryBuilder) Joins(joins []string) db.QueryBuilder
- func (_m *QueryBuilder) OrderBy(field string, direction string) db.QueryBuilder
- func (_m *QueryBuilder) Page(offset int, size int) db.QueryBuilder
- func (_m *QueryBuilder) Table(table string) db.QueryBuilder
- func (_m *QueryBuilder) Where(query interface{}, args ...interface{}) db.QueryBuilder
- type QueryBuilder_Expecter
- func (_e *QueryBuilder_Expecter) GroupBy(field ...interface{}) *QueryBuilder_GroupBy_Call
- func (_e *QueryBuilder_Expecter) Joins(joins interface{}) *QueryBuilder_Joins_Call
- func (_e *QueryBuilder_Expecter) OrderBy(field interface{}, direction interface{}) *QueryBuilder_OrderBy_Call
- func (_e *QueryBuilder_Expecter) Page(offset interface{}, size interface{}) *QueryBuilder_Page_Call
- func (_e *QueryBuilder_Expecter) Table(table interface{}) *QueryBuilder_Table_Call
- func (_e *QueryBuilder_Expecter) Where(query interface{}, args ...interface{}) *QueryBuilder_Where_Call
- type QueryBuilder_GroupBy_Call
- func (_c *QueryBuilder_GroupBy_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_GroupBy_Call
- func (_c *QueryBuilder_GroupBy_Call) Run(run func(field ...string)) *QueryBuilder_GroupBy_Call
- func (_c *QueryBuilder_GroupBy_Call) RunAndReturn(run func(...string) db.QueryBuilder) *QueryBuilder_GroupBy_Call
- type QueryBuilder_Joins_Call
- type QueryBuilder_OrderBy_Call
- func (_c *QueryBuilder_OrderBy_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_OrderBy_Call
- func (_c *QueryBuilder_OrderBy_Call) Run(run func(field string, direction string)) *QueryBuilder_OrderBy_Call
- func (_c *QueryBuilder_OrderBy_Call) RunAndReturn(run func(string, string) db.QueryBuilder) *QueryBuilder_OrderBy_Call
- type QueryBuilder_Page_Call
- type QueryBuilder_Table_Call
- type QueryBuilder_Where_Call
- func (_c *QueryBuilder_Where_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_Where_Call
- func (_c *QueryBuilder_Where_Call) Run(run func(query interface{}, args ...interface{})) *QueryBuilder_Where_Call
- func (_c *QueryBuilder_Where_Call) RunAndReturn(run func(interface{}, ...interface{}) db.QueryBuilder) *QueryBuilder_Where_Call
- type SqlResult
- type SqlResult_Expecter
- type SqlResult_LastInsertId_Call
- type SqlResult_RowsAffected_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) Get ¶
func (_m *Client) Get(ctx context.Context, dest interface{}, query string, args ...interface{}) error
Get provides a mock function with given fields: ctx, dest, query, args
func (*Client) GetResult ¶
func (_m *Client) GetResult(ctx context.Context, query string, args ...interface{}) (*db.Result, error)
GetResult provides a mock function with given fields: ctx, query, args
func (*Client) GetSingleScalarValue ¶
func (_m *Client) GetSingleScalarValue(ctx context.Context, query string, args ...interface{}) (int, error)
GetSingleScalarValue provides a mock function with given fields: ctx, query, args
func (*Client) Queryx ¶
func (_m *Client) Queryx(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
Queryx provides a mock function with given fields: ctx, query, args
type Client_Exec_Call ¶
Client_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*Client_Exec_Call) Return ¶
func (_c *Client_Exec_Call) Return(_a0 sql.Result, _a1 error) *Client_Exec_Call
func (*Client_Exec_Call) Run ¶
func (_c *Client_Exec_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Exec_Call
func (*Client_Exec_Call) RunAndReturn ¶
func (_c *Client_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Client_Exec_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Exec ¶
func (_e *Client_Expecter) Exec(ctx interface{}, query interface{}, args ...interface{}) *Client_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Client_Expecter) Get ¶
func (_e *Client_Expecter) Get(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Client_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
func (*Client_Expecter) GetResult ¶
func (_e *Client_Expecter) GetResult(ctx interface{}, query interface{}, args ...interface{}) *Client_GetResult_Call
GetResult is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Client_Expecter) GetSingleScalarValue ¶
func (_e *Client_Expecter) GetSingleScalarValue(ctx interface{}, query interface{}, args ...interface{}) *Client_GetSingleScalarValue_Call
GetSingleScalarValue is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Client_Expecter) Prepare ¶
func (_e *Client_Expecter) Prepare(ctx interface{}, query interface{}) *Client_Prepare_Call
Prepare is a helper method to define mock.On call
- ctx context.Context
- query string
func (*Client_Expecter) Query ¶
func (_e *Client_Expecter) Query(ctx interface{}, query interface{}, args ...interface{}) *Client_Query_Call
Query is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Client_Expecter) QueryRow ¶
func (_e *Client_Expecter) QueryRow(ctx interface{}, query interface{}, args ...interface{}) *Client_QueryRow_Call
QueryRow is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Client_Expecter) Queryx ¶
func (_e *Client_Expecter) Queryx(ctx interface{}, query interface{}, args ...interface{}) *Client_Queryx_Call
Queryx is a helper method to define mock.On call
- ctx context.Context
- query string
- args ...interface{}
func (*Client_Expecter) Select ¶
func (_e *Client_Expecter) Select(ctx interface{}, dest interface{}, query interface{}, args ...interface{}) *Client_Select_Call
Select is a helper method to define mock.On call
- ctx context.Context
- dest interface{}
- query string
- args ...interface{}
func (*Client_Expecter) WithTx ¶
func (_e *Client_Expecter) WithTx(ctx interface{}, ops interface{}, do interface{}) *Client_WithTx_Call
WithTx is a helper method to define mock.On call
- ctx context.Context
- ops *sql.TxOptions
- do func(context.Context , *sql.Tx) error
type Client_GetResult_Call ¶
Client_GetResult_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResult'
func (*Client_GetResult_Call) Return ¶
func (_c *Client_GetResult_Call) Return(_a0 *db.Result, _a1 error) *Client_GetResult_Call
func (*Client_GetResult_Call) Run ¶
func (_c *Client_GetResult_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_GetResult_Call
func (*Client_GetResult_Call) RunAndReturn ¶
func (_c *Client_GetResult_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*db.Result, error)) *Client_GetResult_Call
type Client_GetSingleScalarValue_Call ¶
Client_GetSingleScalarValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSingleScalarValue'
func (*Client_GetSingleScalarValue_Call) Return ¶
func (_c *Client_GetSingleScalarValue_Call) Return(_a0 int, _a1 error) *Client_GetSingleScalarValue_Call
func (*Client_GetSingleScalarValue_Call) Run ¶
func (_c *Client_GetSingleScalarValue_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_GetSingleScalarValue_Call
func (*Client_GetSingleScalarValue_Call) RunAndReturn ¶
func (_c *Client_GetSingleScalarValue_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (int, error)) *Client_GetSingleScalarValue_Call
type Client_Get_Call ¶
Client_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Client_Get_Call) Return ¶
func (_c *Client_Get_Call) Return(_a0 error) *Client_Get_Call
func (*Client_Get_Call) Run ¶
func (_c *Client_Get_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Client_Get_Call
func (*Client_Get_Call) RunAndReturn ¶
func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Client_Get_Call
type Client_Prepare_Call ¶
Client_Prepare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prepare'
func (*Client_Prepare_Call) Return ¶
func (_c *Client_Prepare_Call) Return(_a0 *sql.Stmt, _a1 error) *Client_Prepare_Call
func (*Client_Prepare_Call) Run ¶
func (_c *Client_Prepare_Call) Run(run func(ctx context.Context, query string)) *Client_Prepare_Call
func (*Client_Prepare_Call) RunAndReturn ¶
func (_c *Client_Prepare_Call) RunAndReturn(run func(context.Context, string) (*sql.Stmt, error)) *Client_Prepare_Call
type Client_QueryRow_Call ¶
Client_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'
func (*Client_QueryRow_Call) Return ¶
func (_c *Client_QueryRow_Call) Return(_a0 *sql.Row) *Client_QueryRow_Call
func (*Client_QueryRow_Call) Run ¶
func (_c *Client_QueryRow_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_QueryRow_Call
func (*Client_QueryRow_Call) RunAndReturn ¶
func (_c *Client_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sql.Row) *Client_QueryRow_Call
type Client_Query_Call ¶
Client_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*Client_Query_Call) Return ¶
func (_c *Client_Query_Call) Return(_a0 *sql.Rows, _a1 error) *Client_Query_Call
func (*Client_Query_Call) Run ¶
func (_c *Client_Query_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Query_Call
func (*Client_Query_Call) RunAndReturn ¶
func (_c *Client_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Client_Query_Call
type Client_Queryx_Call ¶
Client_Queryx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Queryx'
func (*Client_Queryx_Call) Return ¶
func (_c *Client_Queryx_Call) Return(_a0 *sqlx.Rows, _a1 error) *Client_Queryx_Call
func (*Client_Queryx_Call) Run ¶
func (_c *Client_Queryx_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Client_Queryx_Call
func (*Client_Queryx_Call) RunAndReturn ¶
func (_c *Client_Queryx_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *Client_Queryx_Call
type Client_Select_Call ¶
Client_Select_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Select'
func (*Client_Select_Call) Return ¶
func (_c *Client_Select_Call) Return(_a0 error) *Client_Select_Call
func (*Client_Select_Call) Run ¶
func (_c *Client_Select_Call) Run(run func(ctx context.Context, dest interface{}, query string, args ...interface{})) *Client_Select_Call
func (*Client_Select_Call) RunAndReturn ¶
func (_c *Client_Select_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Client_Select_Call
type Client_WithTx_Call ¶
Client_WithTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTx'
func (*Client_WithTx_Call) Return ¶
func (_c *Client_WithTx_Call) Return(_a0 error) *Client_WithTx_Call
func (*Client_WithTx_Call) RunAndReturn ¶
type QueryBuilder ¶
QueryBuilder is an autogenerated mock type for the QueryBuilder type
func NewQueryBuilder ¶
func NewQueryBuilder(t mockConstructorTestingTNewQueryBuilder) *QueryBuilder
NewQueryBuilder creates a new instance of QueryBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*QueryBuilder) EXPECT ¶
func (_m *QueryBuilder) EXPECT() *QueryBuilder_Expecter
func (*QueryBuilder) GroupBy ¶
func (_m *QueryBuilder) GroupBy(field ...string) db.QueryBuilder
GroupBy provides a mock function with given fields: field
func (*QueryBuilder) Joins ¶
func (_m *QueryBuilder) Joins(joins []string) db.QueryBuilder
Joins provides a mock function with given fields: joins
func (*QueryBuilder) OrderBy ¶
func (_m *QueryBuilder) OrderBy(field string, direction string) db.QueryBuilder
OrderBy provides a mock function with given fields: field, direction
func (*QueryBuilder) Page ¶
func (_m *QueryBuilder) Page(offset int, size int) db.QueryBuilder
Page provides a mock function with given fields: offset, size
func (*QueryBuilder) Table ¶
func (_m *QueryBuilder) Table(table string) db.QueryBuilder
Table provides a mock function with given fields: table
func (*QueryBuilder) Where ¶
func (_m *QueryBuilder) Where(query interface{}, args ...interface{}) db.QueryBuilder
Where provides a mock function with given fields: query, args
type QueryBuilder_Expecter ¶
type QueryBuilder_Expecter struct {
// contains filtered or unexported fields
}
func (*QueryBuilder_Expecter) GroupBy ¶
func (_e *QueryBuilder_Expecter) GroupBy(field ...interface{}) *QueryBuilder_GroupBy_Call
GroupBy is a helper method to define mock.On call
- field ...string
func (*QueryBuilder_Expecter) Joins ¶
func (_e *QueryBuilder_Expecter) Joins(joins interface{}) *QueryBuilder_Joins_Call
Joins is a helper method to define mock.On call
- joins []string
func (*QueryBuilder_Expecter) OrderBy ¶
func (_e *QueryBuilder_Expecter) OrderBy(field interface{}, direction interface{}) *QueryBuilder_OrderBy_Call
OrderBy is a helper method to define mock.On call
- field string
- direction string
func (*QueryBuilder_Expecter) Page ¶
func (_e *QueryBuilder_Expecter) Page(offset interface{}, size interface{}) *QueryBuilder_Page_Call
Page is a helper method to define mock.On call
- offset int
- size int
func (*QueryBuilder_Expecter) Table ¶
func (_e *QueryBuilder_Expecter) Table(table interface{}) *QueryBuilder_Table_Call
Table is a helper method to define mock.On call
- table string
func (*QueryBuilder_Expecter) Where ¶
func (_e *QueryBuilder_Expecter) Where(query interface{}, args ...interface{}) *QueryBuilder_Where_Call
Where is a helper method to define mock.On call
- query interface{}
- args ...interface{}
type QueryBuilder_GroupBy_Call ¶
QueryBuilder_GroupBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupBy'
func (*QueryBuilder_GroupBy_Call) Return ¶
func (_c *QueryBuilder_GroupBy_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_GroupBy_Call
func (*QueryBuilder_GroupBy_Call) Run ¶
func (_c *QueryBuilder_GroupBy_Call) Run(run func(field ...string)) *QueryBuilder_GroupBy_Call
func (*QueryBuilder_GroupBy_Call) RunAndReturn ¶
func (_c *QueryBuilder_GroupBy_Call) RunAndReturn(run func(...string) db.QueryBuilder) *QueryBuilder_GroupBy_Call
type QueryBuilder_Joins_Call ¶
QueryBuilder_Joins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Joins'
func (*QueryBuilder_Joins_Call) Return ¶
func (_c *QueryBuilder_Joins_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_Joins_Call
func (*QueryBuilder_Joins_Call) Run ¶
func (_c *QueryBuilder_Joins_Call) Run(run func(joins []string)) *QueryBuilder_Joins_Call
func (*QueryBuilder_Joins_Call) RunAndReturn ¶
func (_c *QueryBuilder_Joins_Call) RunAndReturn(run func([]string) db.QueryBuilder) *QueryBuilder_Joins_Call
type QueryBuilder_OrderBy_Call ¶
QueryBuilder_OrderBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrderBy'
func (*QueryBuilder_OrderBy_Call) Return ¶
func (_c *QueryBuilder_OrderBy_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_OrderBy_Call
func (*QueryBuilder_OrderBy_Call) Run ¶
func (_c *QueryBuilder_OrderBy_Call) Run(run func(field string, direction string)) *QueryBuilder_OrderBy_Call
func (*QueryBuilder_OrderBy_Call) RunAndReturn ¶
func (_c *QueryBuilder_OrderBy_Call) RunAndReturn(run func(string, string) db.QueryBuilder) *QueryBuilder_OrderBy_Call
type QueryBuilder_Page_Call ¶
QueryBuilder_Page_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Page'
func (*QueryBuilder_Page_Call) Return ¶
func (_c *QueryBuilder_Page_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_Page_Call
func (*QueryBuilder_Page_Call) Run ¶
func (_c *QueryBuilder_Page_Call) Run(run func(offset int, size int)) *QueryBuilder_Page_Call
func (*QueryBuilder_Page_Call) RunAndReturn ¶
func (_c *QueryBuilder_Page_Call) RunAndReturn(run func(int, int) db.QueryBuilder) *QueryBuilder_Page_Call
type QueryBuilder_Table_Call ¶
QueryBuilder_Table_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Table'
func (*QueryBuilder_Table_Call) Return ¶
func (_c *QueryBuilder_Table_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_Table_Call
func (*QueryBuilder_Table_Call) Run ¶
func (_c *QueryBuilder_Table_Call) Run(run func(table string)) *QueryBuilder_Table_Call
func (*QueryBuilder_Table_Call) RunAndReturn ¶
func (_c *QueryBuilder_Table_Call) RunAndReturn(run func(string) db.QueryBuilder) *QueryBuilder_Table_Call
type QueryBuilder_Where_Call ¶
QueryBuilder_Where_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Where'
func (*QueryBuilder_Where_Call) Return ¶
func (_c *QueryBuilder_Where_Call) Return(_a0 db.QueryBuilder) *QueryBuilder_Where_Call
func (*QueryBuilder_Where_Call) Run ¶
func (_c *QueryBuilder_Where_Call) Run(run func(query interface{}, args ...interface{})) *QueryBuilder_Where_Call
func (*QueryBuilder_Where_Call) RunAndReturn ¶
func (_c *QueryBuilder_Where_Call) RunAndReturn(run func(interface{}, ...interface{}) db.QueryBuilder) *QueryBuilder_Where_Call
type SqlResult ¶
SqlResult is an autogenerated mock type for the SqlResult type
func NewSqlResult ¶
func NewSqlResult(t mockConstructorTestingTNewSqlResult) *SqlResult
NewSqlResult creates a new instance of SqlResult. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SqlResult) EXPECT ¶
func (_m *SqlResult) EXPECT() *SqlResult_Expecter
func (*SqlResult) LastInsertId ¶
LastInsertId provides a mock function with given fields:
func (*SqlResult) RowsAffected ¶
RowsAffected provides a mock function with given fields:
type SqlResult_Expecter ¶
type SqlResult_Expecter struct {
// contains filtered or unexported fields
}
func (*SqlResult_Expecter) LastInsertId ¶
func (_e *SqlResult_Expecter) LastInsertId() *SqlResult_LastInsertId_Call
LastInsertId is a helper method to define mock.On call
func (*SqlResult_Expecter) RowsAffected ¶
func (_e *SqlResult_Expecter) RowsAffected() *SqlResult_RowsAffected_Call
RowsAffected is a helper method to define mock.On call
type SqlResult_LastInsertId_Call ¶
SqlResult_LastInsertId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastInsertId'
func (*SqlResult_LastInsertId_Call) Return ¶
func (_c *SqlResult_LastInsertId_Call) Return(_a0 int64, _a1 error) *SqlResult_LastInsertId_Call
func (*SqlResult_LastInsertId_Call) Run ¶
func (_c *SqlResult_LastInsertId_Call) Run(run func()) *SqlResult_LastInsertId_Call
func (*SqlResult_LastInsertId_Call) RunAndReturn ¶
func (_c *SqlResult_LastInsertId_Call) RunAndReturn(run func() (int64, error)) *SqlResult_LastInsertId_Call
type SqlResult_RowsAffected_Call ¶
SqlResult_RowsAffected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RowsAffected'
func (*SqlResult_RowsAffected_Call) Return ¶
func (_c *SqlResult_RowsAffected_Call) Return(_a0 int64, _a1 error) *SqlResult_RowsAffected_Call
func (*SqlResult_RowsAffected_Call) Run ¶
func (_c *SqlResult_RowsAffected_Call) Run(run func()) *SqlResult_RowsAffected_Call
func (*SqlResult_RowsAffected_Call) RunAndReturn ¶
func (_c *SqlResult_RowsAffected_Call) RunAndReturn(run func() (int64, error)) *SqlResult_RowsAffected_Call