Documentation ¶
Index ¶
- type AppConfigProperties
- type AppConfigProperties_Expecter
- type AppConfigProperties_Get_Call
- type BeanPropertyRowMapper
- type BeanPropertyRowMapper_Expecter
- type BeanPropertyRowMapper_RowMapper_Call
- func (_c *BeanPropertyRowMapper_RowMapper_Call) Return(_a0 interface{}) *BeanPropertyRowMapper_RowMapper_Call
- func (_c *BeanPropertyRowMapper_RowMapper_Call) Run(run func(row *sql.Row)) *BeanPropertyRowMapper_RowMapper_Call
- func (_c *BeanPropertyRowMapper_RowMapper_Call) RunAndReturn(run func(*sql.Row) interface{}) *BeanPropertyRowMapper_RowMapper_Call
- type BeanPropertyRowMapper_RowsMapper_Call
- func (_c *BeanPropertyRowMapper_RowsMapper_Call) Return(_a0 interface{}) *BeanPropertyRowMapper_RowsMapper_Call
- func (_c *BeanPropertyRowMapper_RowsMapper_Call) Run(run func(rows *sql.Rows)) *BeanPropertyRowMapper_RowsMapper_Call
- func (_c *BeanPropertyRowMapper_RowsMapper_Call) RunAndReturn(run func(*sql.Rows) interface{}) *BeanPropertyRowMapper_RowsMapper_Call
- type DataSource
- type DataSource_Expecter
- type DataSource_FormatDsn_Call
- type DataSource_GetDriverName_Call
- type DbManager
- type DbManager_Close_Call
- type DbManager_Expecter
- type DbManager_GetDb_Call
- type GdbcTemplate
- func (_m *GdbcTemplate) BeginTx() (transaction.Transaction, error)
- func (_m *GdbcTemplate) CloseDB() error
- func (_m *GdbcTemplate) EXPECT() *GdbcTemplate_Expecter
- func (_m *GdbcTemplate) Execute(sqlstr string, args ...interface{}) (sql.Result, error)
- func (_m *GdbcTemplate) Insert(sqlstr string, args ...interface{}) (sql.Result, error)
- func (_m *GdbcTemplate) QueryForArray(sqlstr string, args ...interface{}) mapper.RowsConvertor
- func (_m *GdbcTemplate) QueryRow(sqlstr string, args ...interface{}) mapper.RowConvertor
- func (_m *GdbcTemplate) Update(sqlstr string, args ...interface{}) (sql.Result, error)
- type GdbcTemplate_BeginTx_Call
- func (_c *GdbcTemplate_BeginTx_Call) Return(_a0 transaction.Transaction, _a1 error) *GdbcTemplate_BeginTx_Call
- func (_c *GdbcTemplate_BeginTx_Call) Run(run func()) *GdbcTemplate_BeginTx_Call
- func (_c *GdbcTemplate_BeginTx_Call) RunAndReturn(run func() (transaction.Transaction, error)) *GdbcTemplate_BeginTx_Call
- type GdbcTemplate_CloseDB_Call
- type GdbcTemplate_Execute_Call
- func (_c *GdbcTemplate_Execute_Call) Return(_a0 sql.Result, _a1 error) *GdbcTemplate_Execute_Call
- func (_c *GdbcTemplate_Execute_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Execute_Call
- func (_c *GdbcTemplate_Execute_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Execute_Call
- type GdbcTemplate_Expecter
- func (_e *GdbcTemplate_Expecter) BeginTx() *GdbcTemplate_BeginTx_Call
- func (_e *GdbcTemplate_Expecter) CloseDB() *GdbcTemplate_CloseDB_Call
- func (_e *GdbcTemplate_Expecter) Execute(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Execute_Call
- func (_e *GdbcTemplate_Expecter) Insert(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Insert_Call
- func (_e *GdbcTemplate_Expecter) QueryForArray(sqlstr interface{}, args ...interface{}) *GdbcTemplate_QueryForArray_Call
- func (_e *GdbcTemplate_Expecter) QueryRow(sqlstr interface{}, args ...interface{}) *GdbcTemplate_QueryRow_Call
- func (_e *GdbcTemplate_Expecter) Update(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Update_Call
- type GdbcTemplate_Insert_Call
- func (_c *GdbcTemplate_Insert_Call) Return(_a0 sql.Result, _a1 error) *GdbcTemplate_Insert_Call
- func (_c *GdbcTemplate_Insert_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Insert_Call
- func (_c *GdbcTemplate_Insert_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Insert_Call
- type GdbcTemplate_QueryForArray_Call
- func (_c *GdbcTemplate_QueryForArray_Call) Return(_a0 mapper.RowsConvertor) *GdbcTemplate_QueryForArray_Call
- func (_c *GdbcTemplate_QueryForArray_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_QueryForArray_Call
- func (_c *GdbcTemplate_QueryForArray_Call) RunAndReturn(run func(string, ...interface{}) mapper.RowsConvertor) *GdbcTemplate_QueryForArray_Call
- type GdbcTemplate_QueryRow_Call
- func (_c *GdbcTemplate_QueryRow_Call) Return(_a0 mapper.RowConvertor) *GdbcTemplate_QueryRow_Call
- func (_c *GdbcTemplate_QueryRow_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_QueryRow_Call
- func (_c *GdbcTemplate_QueryRow_Call) RunAndReturn(run func(string, ...interface{}) mapper.RowConvertor) *GdbcTemplate_QueryRow_Call
- type GdbcTemplate_Update_Call
- func (_c *GdbcTemplate_Update_Call) Return(_a0 sql.Result, _a1 error) *GdbcTemplate_Update_Call
- func (_c *GdbcTemplate_Update_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Update_Call
- func (_c *GdbcTemplate_Update_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Update_Call
- type OpenDb
- type OpenDb_Execute_Call
- type OpenDb_Expecter
- type Result
- type Result_Expecter
- type Result_LastInsertId_Call
- type Result_RowsAffected_Call
- type RowMapper
- type RowMapper_Execute_Call
- type RowMapper_Expecter
- type RowsMapper
- type RowsMapper_Execute_Call
- type RowsMapper_Expecter
- type RowsNextResultSet
- func (_m *RowsNextResultSet) Close() error
- func (_m *RowsNextResultSet) Columns() []string
- func (_m *RowsNextResultSet) EXPECT() *RowsNextResultSet_Expecter
- func (_m *RowsNextResultSet) HasNextResultSet() bool
- func (_m *RowsNextResultSet) Next(dest []driver.Value) error
- func (_m *RowsNextResultSet) NextResultSet() error
- type RowsNextResultSet_Close_Call
- type RowsNextResultSet_Columns_Call
- type RowsNextResultSet_Expecter
- func (_e *RowsNextResultSet_Expecter) Close() *RowsNextResultSet_Close_Call
- func (_e *RowsNextResultSet_Expecter) Columns() *RowsNextResultSet_Columns_Call
- func (_e *RowsNextResultSet_Expecter) HasNextResultSet() *RowsNextResultSet_HasNextResultSet_Call
- func (_e *RowsNextResultSet_Expecter) Next(dest interface{}) *RowsNextResultSet_Next_Call
- func (_e *RowsNextResultSet_Expecter) NextResultSet() *RowsNextResultSet_NextResultSet_Call
- type RowsNextResultSet_HasNextResultSet_Call
- func (_c *RowsNextResultSet_HasNextResultSet_Call) Return(_a0 bool) *RowsNextResultSet_HasNextResultSet_Call
- func (_c *RowsNextResultSet_HasNextResultSet_Call) Run(run func()) *RowsNextResultSet_HasNextResultSet_Call
- func (_c *RowsNextResultSet_HasNextResultSet_Call) RunAndReturn(run func() bool) *RowsNextResultSet_HasNextResultSet_Call
- type RowsNextResultSet_NextResultSet_Call
- func (_c *RowsNextResultSet_NextResultSet_Call) Return(_a0 error) *RowsNextResultSet_NextResultSet_Call
- func (_c *RowsNextResultSet_NextResultSet_Call) Run(run func()) *RowsNextResultSet_NextResultSet_Call
- func (_c *RowsNextResultSet_NextResultSet_Call) RunAndReturn(run func() error) *RowsNextResultSet_NextResultSet_Call
- type RowsNextResultSet_Next_Call
- func (_c *RowsNextResultSet_Next_Call) Return(_a0 error) *RowsNextResultSet_Next_Call
- func (_c *RowsNextResultSet_Next_Call) Run(run func(dest []driver.Value)) *RowsNextResultSet_Next_Call
- func (_c *RowsNextResultSet_Next_Call) RunAndReturn(run func([]driver.Value) error) *RowsNextResultSet_Next_Call
- type Transaction
- func (_m *Transaction) Commit() error
- func (_m *Transaction) EXPECT() *Transaction_Expecter
- func (_m *Transaction) Execute(sqlstr string, args ...interface{}) (sql.Result, error)
- func (_m *Transaction) Insert(sqlstr string, args ...interface{}) (sql.Result, error)
- func (_m *Transaction) Update(sqlstr string, args ...interface{}) (sql.Result, error)
- type Transaction_Commit_Call
- type Transaction_Execute_Call
- func (_c *Transaction_Execute_Call) Return(_a0 sql.Result, _a1 error) *Transaction_Execute_Call
- func (_c *Transaction_Execute_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Execute_Call
- func (_c *Transaction_Execute_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Execute_Call
- type Transaction_Expecter
- func (_e *Transaction_Expecter) Commit() *Transaction_Commit_Call
- func (_e *Transaction_Expecter) Execute(sqlstr interface{}, args ...interface{}) *Transaction_Execute_Call
- func (_e *Transaction_Expecter) Insert(sqlstr interface{}, args ...interface{}) *Transaction_Insert_Call
- func (_e *Transaction_Expecter) Update(sqlstr interface{}, args ...interface{}) *Transaction_Update_Call
- type Transaction_Insert_Call
- func (_c *Transaction_Insert_Call) Return(_a0 sql.Result, _a1 error) *Transaction_Insert_Call
- func (_c *Transaction_Insert_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Insert_Call
- func (_c *Transaction_Insert_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Insert_Call
- type Transaction_Update_Call
- func (_c *Transaction_Update_Call) Return(_a0 sql.Result, _a1 error) *Transaction_Update_Call
- func (_c *Transaction_Update_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Update_Call
- func (_c *Transaction_Update_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfigProperties ¶ added in v1.3.1
AppConfigProperties is an autogenerated mock type for the AppConfigProperties type
func NewAppConfigProperties ¶ added in v1.3.1
func NewAppConfigProperties(t mockConstructorTestingTNewAppConfigProperties) *AppConfigProperties
NewAppConfigProperties creates a new instance of AppConfigProperties. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AppConfigProperties) EXPECT ¶ added in v1.3.1
func (_m *AppConfigProperties) EXPECT() *AppConfigProperties_Expecter
func (*AppConfigProperties) Get ¶ added in v1.3.1
func (_m *AppConfigProperties) Get(key string) string
Get provides a mock function with given fields: key
type AppConfigProperties_Expecter ¶ added in v1.3.1
type AppConfigProperties_Expecter struct {
// contains filtered or unexported fields
}
func (*AppConfigProperties_Expecter) Get ¶ added in v1.3.1
func (_e *AppConfigProperties_Expecter) Get(key interface{}) *AppConfigProperties_Get_Call
Get is a helper method to define mock.On call
- key string
type AppConfigProperties_Get_Call ¶ added in v1.3.1
AppConfigProperties_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*AppConfigProperties_Get_Call) Return ¶ added in v1.3.1
func (_c *AppConfigProperties_Get_Call) Return(_a0 string) *AppConfigProperties_Get_Call
func (*AppConfigProperties_Get_Call) Run ¶ added in v1.3.1
func (_c *AppConfigProperties_Get_Call) Run(run func(key string)) *AppConfigProperties_Get_Call
func (*AppConfigProperties_Get_Call) RunAndReturn ¶ added in v1.3.1
func (_c *AppConfigProperties_Get_Call) RunAndReturn(run func(string) string) *AppConfigProperties_Get_Call
type BeanPropertyRowMapper ¶ added in v1.3.1
BeanPropertyRowMapper is an autogenerated mock type for the BeanPropertyRowMapper type
func NewBeanPropertyRowMapper ¶ added in v1.3.1
func NewBeanPropertyRowMapper(t mockConstructorTestingTNewBeanPropertyRowMapper) *BeanPropertyRowMapper
NewBeanPropertyRowMapper creates a new instance of BeanPropertyRowMapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BeanPropertyRowMapper) EXPECT ¶ added in v1.3.1
func (_m *BeanPropertyRowMapper) EXPECT() *BeanPropertyRowMapper_Expecter
func (*BeanPropertyRowMapper) RowMapper ¶ added in v1.3.1
func (_m *BeanPropertyRowMapper) RowMapper(row *sql.Row) interface{}
RowMapper provides a mock function with given fields: row
func (*BeanPropertyRowMapper) RowsMapper ¶ added in v1.3.1
func (_m *BeanPropertyRowMapper) RowsMapper(rows *sql.Rows) interface{}
RowsMapper provides a mock function with given fields: rows
type BeanPropertyRowMapper_Expecter ¶ added in v1.3.1
type BeanPropertyRowMapper_Expecter struct {
// contains filtered or unexported fields
}
func (*BeanPropertyRowMapper_Expecter) RowMapper ¶ added in v1.3.1
func (_e *BeanPropertyRowMapper_Expecter) RowMapper(row interface{}) *BeanPropertyRowMapper_RowMapper_Call
RowMapper is a helper method to define mock.On call
- row *sql.Row
func (*BeanPropertyRowMapper_Expecter) RowsMapper ¶ added in v1.3.1
func (_e *BeanPropertyRowMapper_Expecter) RowsMapper(rows interface{}) *BeanPropertyRowMapper_RowsMapper_Call
RowsMapper is a helper method to define mock.On call
- rows *sql.Rows
type BeanPropertyRowMapper_RowMapper_Call ¶ added in v1.3.1
BeanPropertyRowMapper_RowMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RowMapper'
func (*BeanPropertyRowMapper_RowMapper_Call) Return ¶ added in v1.3.1
func (_c *BeanPropertyRowMapper_RowMapper_Call) Return(_a0 interface{}) *BeanPropertyRowMapper_RowMapper_Call
func (*BeanPropertyRowMapper_RowMapper_Call) Run ¶ added in v1.3.1
func (_c *BeanPropertyRowMapper_RowMapper_Call) Run(run func(row *sql.Row)) *BeanPropertyRowMapper_RowMapper_Call
func (*BeanPropertyRowMapper_RowMapper_Call) RunAndReturn ¶ added in v1.3.1
func (_c *BeanPropertyRowMapper_RowMapper_Call) RunAndReturn(run func(*sql.Row) interface{}) *BeanPropertyRowMapper_RowMapper_Call
type BeanPropertyRowMapper_RowsMapper_Call ¶ added in v1.3.1
BeanPropertyRowMapper_RowsMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RowsMapper'
func (*BeanPropertyRowMapper_RowsMapper_Call) Return ¶ added in v1.3.1
func (_c *BeanPropertyRowMapper_RowsMapper_Call) Return(_a0 interface{}) *BeanPropertyRowMapper_RowsMapper_Call
func (*BeanPropertyRowMapper_RowsMapper_Call) Run ¶ added in v1.3.1
func (_c *BeanPropertyRowMapper_RowsMapper_Call) Run(run func(rows *sql.Rows)) *BeanPropertyRowMapper_RowsMapper_Call
func (*BeanPropertyRowMapper_RowsMapper_Call) RunAndReturn ¶ added in v1.3.1
func (_c *BeanPropertyRowMapper_RowsMapper_Call) RunAndReturn(run func(*sql.Rows) interface{}) *BeanPropertyRowMapper_RowsMapper_Call
type DataSource ¶ added in v1.3.1
DataSource is an autogenerated mock type for the DataSource type
func NewDataSource ¶ added in v1.3.1
func NewDataSource(t mockConstructorTestingTNewDataSource) *DataSource
NewDataSource creates a new instance of DataSource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DataSource) EXPECT ¶ added in v1.3.1
func (_m *DataSource) EXPECT() *DataSource_Expecter
func (*DataSource) FormatDsn ¶ added in v1.3.1
func (_m *DataSource) FormatDsn() (string, string)
FormatDsn provides a mock function with given fields:
func (*DataSource) GetDriverName ¶ added in v1.3.1
func (_m *DataSource) GetDriverName() string
GetDriverName provides a mock function with given fields:
type DataSource_Expecter ¶ added in v1.3.1
type DataSource_Expecter struct {
// contains filtered or unexported fields
}
func (*DataSource_Expecter) FormatDsn ¶ added in v1.3.1
func (_e *DataSource_Expecter) FormatDsn() *DataSource_FormatDsn_Call
FormatDsn is a helper method to define mock.On call
func (*DataSource_Expecter) GetDriverName ¶ added in v1.3.1
func (_e *DataSource_Expecter) GetDriverName() *DataSource_GetDriverName_Call
GetDriverName is a helper method to define mock.On call
type DataSource_FormatDsn_Call ¶ added in v1.3.1
DataSource_FormatDsn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FormatDsn'
func (*DataSource_FormatDsn_Call) Return ¶ added in v1.3.1
func (_c *DataSource_FormatDsn_Call) Return(_a0 string, _a1 string) *DataSource_FormatDsn_Call
func (*DataSource_FormatDsn_Call) Run ¶ added in v1.3.1
func (_c *DataSource_FormatDsn_Call) Run(run func()) *DataSource_FormatDsn_Call
func (*DataSource_FormatDsn_Call) RunAndReturn ¶ added in v1.3.1
func (_c *DataSource_FormatDsn_Call) RunAndReturn(run func() (string, string)) *DataSource_FormatDsn_Call
type DataSource_GetDriverName_Call ¶ added in v1.3.1
DataSource_GetDriverName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDriverName'
func (*DataSource_GetDriverName_Call) Return ¶ added in v1.3.1
func (_c *DataSource_GetDriverName_Call) Return(_a0 string) *DataSource_GetDriverName_Call
func (*DataSource_GetDriverName_Call) Run ¶ added in v1.3.1
func (_c *DataSource_GetDriverName_Call) Run(run func()) *DataSource_GetDriverName_Call
func (*DataSource_GetDriverName_Call) RunAndReturn ¶ added in v1.3.1
func (_c *DataSource_GetDriverName_Call) RunAndReturn(run func() string) *DataSource_GetDriverName_Call
type DbManager ¶ added in v1.3.1
DbManager is an autogenerated mock type for the DbManager type
func NewDbManager ¶ added in v1.3.1
func NewDbManager(t mockConstructorTestingTNewDbManager) *DbManager
NewDbManager creates a new instance of DbManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DbManager) EXPECT ¶ added in v1.3.1
func (_m *DbManager) EXPECT() *DbManager_Expecter
type DbManager_Close_Call ¶ added in v1.3.1
DbManager_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*DbManager_Close_Call) Return ¶ added in v1.3.1
func (_c *DbManager_Close_Call) Return(_a0 error) *DbManager_Close_Call
func (*DbManager_Close_Call) Run ¶ added in v1.3.1
func (_c *DbManager_Close_Call) Run(run func()) *DbManager_Close_Call
func (*DbManager_Close_Call) RunAndReturn ¶ added in v1.3.1
func (_c *DbManager_Close_Call) RunAndReturn(run func() error) *DbManager_Close_Call
type DbManager_Expecter ¶ added in v1.3.1
type DbManager_Expecter struct {
// contains filtered or unexported fields
}
func (*DbManager_Expecter) Close ¶ added in v1.3.1
func (_e *DbManager_Expecter) Close() *DbManager_Close_Call
Close is a helper method to define mock.On call
func (*DbManager_Expecter) GetDb ¶ added in v1.3.1
func (_e *DbManager_Expecter) GetDb() *DbManager_GetDb_Call
GetDb is a helper method to define mock.On call
type DbManager_GetDb_Call ¶ added in v1.3.1
DbManager_GetDb_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDb'
func (*DbManager_GetDb_Call) Return ¶ added in v1.3.1
func (_c *DbManager_GetDb_Call) Return(_a0 *sql.DB, _a1 error) *DbManager_GetDb_Call
func (*DbManager_GetDb_Call) Run ¶ added in v1.3.1
func (_c *DbManager_GetDb_Call) Run(run func()) *DbManager_GetDb_Call
func (*DbManager_GetDb_Call) RunAndReturn ¶ added in v1.3.1
func (_c *DbManager_GetDb_Call) RunAndReturn(run func() (*sql.DB, error)) *DbManager_GetDb_Call
type GdbcTemplate ¶ added in v1.3.1
GdbcTemplate is an autogenerated mock type for the GdbcTemplate type
func NewGdbcTemplate ¶ added in v1.3.1
func NewGdbcTemplate(t mockConstructorTestingTNewGdbcTemplate) *GdbcTemplate
NewGdbcTemplate creates a new instance of GdbcTemplate. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GdbcTemplate) BeginTx ¶ added in v1.3.1
func (_m *GdbcTemplate) BeginTx() (transaction.Transaction, error)
BeginTx provides a mock function with given fields:
func (*GdbcTemplate) CloseDB ¶ added in v1.3.1
func (_m *GdbcTemplate) CloseDB() error
CloseDB provides a mock function with given fields:
func (*GdbcTemplate) EXPECT ¶ added in v1.3.1
func (_m *GdbcTemplate) EXPECT() *GdbcTemplate_Expecter
func (*GdbcTemplate) Execute ¶ added in v1.3.1
func (_m *GdbcTemplate) Execute(sqlstr string, args ...interface{}) (sql.Result, error)
Execute provides a mock function with given fields: sqlstr, args
func (*GdbcTemplate) Insert ¶ added in v1.3.1
func (_m *GdbcTemplate) Insert(sqlstr string, args ...interface{}) (sql.Result, error)
Insert provides a mock function with given fields: sqlstr, args
func (*GdbcTemplate) QueryForArray ¶ added in v1.3.1
func (_m *GdbcTemplate) QueryForArray(sqlstr string, args ...interface{}) mapper.RowsConvertor
QueryForArray provides a mock function with given fields: sqlstr, args
func (*GdbcTemplate) QueryRow ¶ added in v1.3.1
func (_m *GdbcTemplate) QueryRow(sqlstr string, args ...interface{}) mapper.RowConvertor
QueryRow provides a mock function with given fields: sqlstr, args
type GdbcTemplate_BeginTx_Call ¶ added in v1.3.1
GdbcTemplate_BeginTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginTx'
func (*GdbcTemplate_BeginTx_Call) Return ¶ added in v1.3.1
func (_c *GdbcTemplate_BeginTx_Call) Return(_a0 transaction.Transaction, _a1 error) *GdbcTemplate_BeginTx_Call
func (*GdbcTemplate_BeginTx_Call) Run ¶ added in v1.3.1
func (_c *GdbcTemplate_BeginTx_Call) Run(run func()) *GdbcTemplate_BeginTx_Call
func (*GdbcTemplate_BeginTx_Call) RunAndReturn ¶ added in v1.3.1
func (_c *GdbcTemplate_BeginTx_Call) RunAndReturn(run func() (transaction.Transaction, error)) *GdbcTemplate_BeginTx_Call
type GdbcTemplate_CloseDB_Call ¶ added in v1.3.1
GdbcTemplate_CloseDB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseDB'
func (*GdbcTemplate_CloseDB_Call) Return ¶ added in v1.3.1
func (_c *GdbcTemplate_CloseDB_Call) Return(_a0 error) *GdbcTemplate_CloseDB_Call
func (*GdbcTemplate_CloseDB_Call) Run ¶ added in v1.3.1
func (_c *GdbcTemplate_CloseDB_Call) Run(run func()) *GdbcTemplate_CloseDB_Call
func (*GdbcTemplate_CloseDB_Call) RunAndReturn ¶ added in v1.3.1
func (_c *GdbcTemplate_CloseDB_Call) RunAndReturn(run func() error) *GdbcTemplate_CloseDB_Call
type GdbcTemplate_Execute_Call ¶ added in v1.3.1
GdbcTemplate_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*GdbcTemplate_Execute_Call) Return ¶ added in v1.3.1
func (_c *GdbcTemplate_Execute_Call) Return(_a0 sql.Result, _a1 error) *GdbcTemplate_Execute_Call
func (*GdbcTemplate_Execute_Call) Run ¶ added in v1.3.1
func (_c *GdbcTemplate_Execute_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Execute_Call
func (*GdbcTemplate_Execute_Call) RunAndReturn ¶ added in v1.3.1
func (_c *GdbcTemplate_Execute_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Execute_Call
type GdbcTemplate_Expecter ¶ added in v1.3.1
type GdbcTemplate_Expecter struct {
// contains filtered or unexported fields
}
func (*GdbcTemplate_Expecter) BeginTx ¶ added in v1.3.1
func (_e *GdbcTemplate_Expecter) BeginTx() *GdbcTemplate_BeginTx_Call
BeginTx is a helper method to define mock.On call
func (*GdbcTemplate_Expecter) CloseDB ¶ added in v1.3.1
func (_e *GdbcTemplate_Expecter) CloseDB() *GdbcTemplate_CloseDB_Call
CloseDB is a helper method to define mock.On call
func (*GdbcTemplate_Expecter) Execute ¶ added in v1.3.1
func (_e *GdbcTemplate_Expecter) Execute(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Execute_Call
Execute is a helper method to define mock.On call
- sqlstr string
- args ...interface{}
func (*GdbcTemplate_Expecter) Insert ¶ added in v1.3.1
func (_e *GdbcTemplate_Expecter) Insert(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Insert_Call
Insert is a helper method to define mock.On call
- sqlstr string
- args ...interface{}
func (*GdbcTemplate_Expecter) QueryForArray ¶ added in v1.3.1
func (_e *GdbcTemplate_Expecter) QueryForArray(sqlstr interface{}, args ...interface{}) *GdbcTemplate_QueryForArray_Call
QueryForArray is a helper method to define mock.On call
- sqlstr string
- args ...interface{}
func (*GdbcTemplate_Expecter) QueryRow ¶ added in v1.3.1
func (_e *GdbcTemplate_Expecter) QueryRow(sqlstr interface{}, args ...interface{}) *GdbcTemplate_QueryRow_Call
QueryRow is a helper method to define mock.On call
- sqlstr string
- args ...interface{}
func (*GdbcTemplate_Expecter) Update ¶ added in v1.3.1
func (_e *GdbcTemplate_Expecter) Update(sqlstr interface{}, args ...interface{}) *GdbcTemplate_Update_Call
Update is a helper method to define mock.On call
- sqlstr string
- args ...interface{}
type GdbcTemplate_Insert_Call ¶ added in v1.3.1
GdbcTemplate_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*GdbcTemplate_Insert_Call) Return ¶ added in v1.3.1
func (_c *GdbcTemplate_Insert_Call) Return(_a0 sql.Result, _a1 error) *GdbcTemplate_Insert_Call
func (*GdbcTemplate_Insert_Call) Run ¶ added in v1.3.1
func (_c *GdbcTemplate_Insert_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Insert_Call
func (*GdbcTemplate_Insert_Call) RunAndReturn ¶ added in v1.3.1
func (_c *GdbcTemplate_Insert_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Insert_Call
type GdbcTemplate_QueryForArray_Call ¶ added in v1.3.1
GdbcTemplate_QueryForArray_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryForArray'
func (*GdbcTemplate_QueryForArray_Call) Return ¶ added in v1.3.1
func (_c *GdbcTemplate_QueryForArray_Call) Return(_a0 mapper.RowsConvertor) *GdbcTemplate_QueryForArray_Call
func (*GdbcTemplate_QueryForArray_Call) Run ¶ added in v1.3.1
func (_c *GdbcTemplate_QueryForArray_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_QueryForArray_Call
func (*GdbcTemplate_QueryForArray_Call) RunAndReturn ¶ added in v1.3.1
func (_c *GdbcTemplate_QueryForArray_Call) RunAndReturn(run func(string, ...interface{}) mapper.RowsConvertor) *GdbcTemplate_QueryForArray_Call
type GdbcTemplate_QueryRow_Call ¶ added in v1.3.1
GdbcTemplate_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'
func (*GdbcTemplate_QueryRow_Call) Return ¶ added in v1.3.1
func (_c *GdbcTemplate_QueryRow_Call) Return(_a0 mapper.RowConvertor) *GdbcTemplate_QueryRow_Call
func (*GdbcTemplate_QueryRow_Call) Run ¶ added in v1.3.1
func (_c *GdbcTemplate_QueryRow_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_QueryRow_Call
func (*GdbcTemplate_QueryRow_Call) RunAndReturn ¶ added in v1.3.1
func (_c *GdbcTemplate_QueryRow_Call) RunAndReturn(run func(string, ...interface{}) mapper.RowConvertor) *GdbcTemplate_QueryRow_Call
type GdbcTemplate_Update_Call ¶ added in v1.3.1
GdbcTemplate_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*GdbcTemplate_Update_Call) Return ¶ added in v1.3.1
func (_c *GdbcTemplate_Update_Call) Return(_a0 sql.Result, _a1 error) *GdbcTemplate_Update_Call
func (*GdbcTemplate_Update_Call) Run ¶ added in v1.3.1
func (_c *GdbcTemplate_Update_Call) Run(run func(sqlstr string, args ...interface{})) *GdbcTemplate_Update_Call
func (*GdbcTemplate_Update_Call) RunAndReturn ¶ added in v1.3.1
func (_c *GdbcTemplate_Update_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *GdbcTemplate_Update_Call
type OpenDb ¶ added in v1.3.1
OpenDb is an autogenerated mock type for the OpenDb type
func NewOpenDb ¶ added in v1.3.1
func NewOpenDb(t mockConstructorTestingTNewOpenDb) *OpenDb
NewOpenDb creates a new instance of OpenDb. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*OpenDb) EXPECT ¶ added in v1.3.1
func (_m *OpenDb) EXPECT() *OpenDb_Expecter
type OpenDb_Execute_Call ¶ added in v1.3.1
OpenDb_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*OpenDb_Execute_Call) Return ¶ added in v1.3.1
func (_c *OpenDb_Execute_Call) Return(_a0 *sql.DB, _a1 error) *OpenDb_Execute_Call
func (*OpenDb_Execute_Call) Run ¶ added in v1.3.1
func (_c *OpenDb_Execute_Call) Run(run func(driverName string, dataSourceName string)) *OpenDb_Execute_Call
func (*OpenDb_Execute_Call) RunAndReturn ¶ added in v1.3.1
func (_c *OpenDb_Execute_Call) RunAndReturn(run func(string, string) (*sql.DB, error)) *OpenDb_Execute_Call
type OpenDb_Expecter ¶ added in v1.3.1
type OpenDb_Expecter struct {
// contains filtered or unexported fields
}
func (*OpenDb_Expecter) Execute ¶ added in v1.3.1
func (_e *OpenDb_Expecter) Execute(driverName interface{}, dataSourceName interface{}) *OpenDb_Execute_Call
Execute is a helper method to define mock.On call
- driverName string
- dataSourceName string
type Result ¶ added in v1.3.1
Result is an autogenerated mock type for the Result type
func NewResult ¶ added in v1.3.1
func NewResult(t mockConstructorTestingTNewResult) *Result
NewResult creates a new instance of Result. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Result) EXPECT ¶ added in v1.3.1
func (_m *Result) EXPECT() *Result_Expecter
func (*Result) LastInsertId ¶ added in v1.3.1
LastInsertId provides a mock function with given fields:
func (*Result) RowsAffected ¶ added in v1.3.1
RowsAffected provides a mock function with given fields:
type Result_Expecter ¶ added in v1.3.1
type Result_Expecter struct {
// contains filtered or unexported fields
}
func (*Result_Expecter) LastInsertId ¶ added in v1.3.1
func (_e *Result_Expecter) LastInsertId() *Result_LastInsertId_Call
LastInsertId is a helper method to define mock.On call
func (*Result_Expecter) RowsAffected ¶ added in v1.3.1
func (_e *Result_Expecter) RowsAffected() *Result_RowsAffected_Call
RowsAffected is a helper method to define mock.On call
type Result_LastInsertId_Call ¶ added in v1.3.1
Result_LastInsertId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastInsertId'
func (*Result_LastInsertId_Call) Return ¶ added in v1.3.1
func (_c *Result_LastInsertId_Call) Return(_a0 int64, _a1 error) *Result_LastInsertId_Call
func (*Result_LastInsertId_Call) Run ¶ added in v1.3.1
func (_c *Result_LastInsertId_Call) Run(run func()) *Result_LastInsertId_Call
func (*Result_LastInsertId_Call) RunAndReturn ¶ added in v1.3.1
func (_c *Result_LastInsertId_Call) RunAndReturn(run func() (int64, error)) *Result_LastInsertId_Call
type Result_RowsAffected_Call ¶ added in v1.3.1
Result_RowsAffected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RowsAffected'
func (*Result_RowsAffected_Call) Return ¶ added in v1.3.1
func (_c *Result_RowsAffected_Call) Return(_a0 int64, _a1 error) *Result_RowsAffected_Call
func (*Result_RowsAffected_Call) Run ¶ added in v1.3.1
func (_c *Result_RowsAffected_Call) Run(run func()) *Result_RowsAffected_Call
func (*Result_RowsAffected_Call) RunAndReturn ¶ added in v1.3.1
func (_c *Result_RowsAffected_Call) RunAndReturn(run func() (int64, error)) *Result_RowsAffected_Call
type RowMapper ¶ added in v1.3.1
RowMapper is an autogenerated mock type for the RowMapper type
func NewRowMapper ¶ added in v1.3.1
func NewRowMapper(t mockConstructorTestingTNewRowMapper) *RowMapper
NewRowMapper creates a new instance of RowMapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowMapper) EXPECT ¶ added in v1.3.1
func (_m *RowMapper) EXPECT() *RowMapper_Expecter
type RowMapper_Execute_Call ¶ added in v1.3.1
RowMapper_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*RowMapper_Execute_Call) Return ¶ added in v1.3.1
func (_c *RowMapper_Execute_Call) Return(_a0 interface{}) *RowMapper_Execute_Call
func (*RowMapper_Execute_Call) Run ¶ added in v1.3.1
func (_c *RowMapper_Execute_Call) Run(run func(row *sql.Row)) *RowMapper_Execute_Call
func (*RowMapper_Execute_Call) RunAndReturn ¶ added in v1.3.1
func (_c *RowMapper_Execute_Call) RunAndReturn(run func(*sql.Row) interface{}) *RowMapper_Execute_Call
type RowMapper_Expecter ¶ added in v1.3.1
type RowMapper_Expecter struct {
// contains filtered or unexported fields
}
func (*RowMapper_Expecter) Execute ¶ added in v1.3.1
func (_e *RowMapper_Expecter) Execute(row interface{}) *RowMapper_Execute_Call
Execute is a helper method to define mock.On call
- row *sql.Row
type RowsMapper ¶ added in v1.3.1
RowsMapper is an autogenerated mock type for the RowsMapper type
func NewRowsMapper ¶ added in v1.3.1
func NewRowsMapper(t mockConstructorTestingTNewRowsMapper) *RowsMapper
NewRowsMapper creates a new instance of RowsMapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowsMapper) EXPECT ¶ added in v1.3.1
func (_m *RowsMapper) EXPECT() *RowsMapper_Expecter
func (*RowsMapper) Execute ¶ added in v1.3.1
func (_m *RowsMapper) Execute(rows *sql.Rows) interface{}
Execute provides a mock function with given fields: rows
type RowsMapper_Execute_Call ¶ added in v1.3.1
RowsMapper_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*RowsMapper_Execute_Call) Return ¶ added in v1.3.1
func (_c *RowsMapper_Execute_Call) Return(_a0 interface{}) *RowsMapper_Execute_Call
func (*RowsMapper_Execute_Call) Run ¶ added in v1.3.1
func (_c *RowsMapper_Execute_Call) Run(run func(rows *sql.Rows)) *RowsMapper_Execute_Call
func (*RowsMapper_Execute_Call) RunAndReturn ¶ added in v1.3.1
func (_c *RowsMapper_Execute_Call) RunAndReturn(run func(*sql.Rows) interface{}) *RowsMapper_Execute_Call
type RowsMapper_Expecter ¶ added in v1.3.1
type RowsMapper_Expecter struct {
// contains filtered or unexported fields
}
func (*RowsMapper_Expecter) Execute ¶ added in v1.3.1
func (_e *RowsMapper_Expecter) Execute(rows interface{}) *RowsMapper_Execute_Call
Execute is a helper method to define mock.On call
- rows *sql.Rows
type RowsNextResultSet ¶ added in v1.3.1
RowsNextResultSet is an autogenerated mock type for the RowsNextResultSet type
func NewRowsNextResultSet ¶ added in v1.3.1
func NewRowsNextResultSet(t mockConstructorTestingTNewRowsNextResultSet) *RowsNextResultSet
NewRowsNextResultSet creates a new instance of RowsNextResultSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowsNextResultSet) Close ¶ added in v1.3.1
func (_m *RowsNextResultSet) Close() error
Close provides a mock function with given fields:
func (*RowsNextResultSet) Columns ¶ added in v1.3.1
func (_m *RowsNextResultSet) Columns() []string
Columns provides a mock function with given fields:
func (*RowsNextResultSet) EXPECT ¶ added in v1.3.1
func (_m *RowsNextResultSet) EXPECT() *RowsNextResultSet_Expecter
func (*RowsNextResultSet) HasNextResultSet ¶ added in v1.3.1
func (_m *RowsNextResultSet) HasNextResultSet() bool
HasNextResultSet provides a mock function with given fields:
func (*RowsNextResultSet) Next ¶ added in v1.3.1
func (_m *RowsNextResultSet) Next(dest []driver.Value) error
Next provides a mock function with given fields: dest
func (*RowsNextResultSet) NextResultSet ¶ added in v1.3.1
func (_m *RowsNextResultSet) NextResultSet() error
NextResultSet provides a mock function with given fields:
type RowsNextResultSet_Close_Call ¶ added in v1.3.1
RowsNextResultSet_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*RowsNextResultSet_Close_Call) Return ¶ added in v1.3.1
func (_c *RowsNextResultSet_Close_Call) Return(_a0 error) *RowsNextResultSet_Close_Call
func (*RowsNextResultSet_Close_Call) Run ¶ added in v1.3.1
func (_c *RowsNextResultSet_Close_Call) Run(run func()) *RowsNextResultSet_Close_Call
func (*RowsNextResultSet_Close_Call) RunAndReturn ¶ added in v1.3.1
func (_c *RowsNextResultSet_Close_Call) RunAndReturn(run func() error) *RowsNextResultSet_Close_Call
type RowsNextResultSet_Columns_Call ¶ added in v1.3.1
RowsNextResultSet_Columns_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Columns'
func (*RowsNextResultSet_Columns_Call) Return ¶ added in v1.3.1
func (_c *RowsNextResultSet_Columns_Call) Return(_a0 []string) *RowsNextResultSet_Columns_Call
func (*RowsNextResultSet_Columns_Call) Run ¶ added in v1.3.1
func (_c *RowsNextResultSet_Columns_Call) Run(run func()) *RowsNextResultSet_Columns_Call
func (*RowsNextResultSet_Columns_Call) RunAndReturn ¶ added in v1.3.1
func (_c *RowsNextResultSet_Columns_Call) RunAndReturn(run func() []string) *RowsNextResultSet_Columns_Call
type RowsNextResultSet_Expecter ¶ added in v1.3.1
type RowsNextResultSet_Expecter struct {
// contains filtered or unexported fields
}
func (*RowsNextResultSet_Expecter) Close ¶ added in v1.3.1
func (_e *RowsNextResultSet_Expecter) Close() *RowsNextResultSet_Close_Call
Close is a helper method to define mock.On call
func (*RowsNextResultSet_Expecter) Columns ¶ added in v1.3.1
func (_e *RowsNextResultSet_Expecter) Columns() *RowsNextResultSet_Columns_Call
Columns is a helper method to define mock.On call
func (*RowsNextResultSet_Expecter) HasNextResultSet ¶ added in v1.3.1
func (_e *RowsNextResultSet_Expecter) HasNextResultSet() *RowsNextResultSet_HasNextResultSet_Call
HasNextResultSet is a helper method to define mock.On call
func (*RowsNextResultSet_Expecter) Next ¶ added in v1.3.1
func (_e *RowsNextResultSet_Expecter) Next(dest interface{}) *RowsNextResultSet_Next_Call
Next is a helper method to define mock.On call
- dest []driver.Value
func (*RowsNextResultSet_Expecter) NextResultSet ¶ added in v1.3.1
func (_e *RowsNextResultSet_Expecter) NextResultSet() *RowsNextResultSet_NextResultSet_Call
NextResultSet is a helper method to define mock.On call
type RowsNextResultSet_HasNextResultSet_Call ¶ added in v1.3.1
RowsNextResultSet_HasNextResultSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasNextResultSet'
func (*RowsNextResultSet_HasNextResultSet_Call) Return ¶ added in v1.3.1
func (_c *RowsNextResultSet_HasNextResultSet_Call) Return(_a0 bool) *RowsNextResultSet_HasNextResultSet_Call
func (*RowsNextResultSet_HasNextResultSet_Call) Run ¶ added in v1.3.1
func (_c *RowsNextResultSet_HasNextResultSet_Call) Run(run func()) *RowsNextResultSet_HasNextResultSet_Call
func (*RowsNextResultSet_HasNextResultSet_Call) RunAndReturn ¶ added in v1.3.1
func (_c *RowsNextResultSet_HasNextResultSet_Call) RunAndReturn(run func() bool) *RowsNextResultSet_HasNextResultSet_Call
type RowsNextResultSet_NextResultSet_Call ¶ added in v1.3.1
RowsNextResultSet_NextResultSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextResultSet'
func (*RowsNextResultSet_NextResultSet_Call) Return ¶ added in v1.3.1
func (_c *RowsNextResultSet_NextResultSet_Call) Return(_a0 error) *RowsNextResultSet_NextResultSet_Call
func (*RowsNextResultSet_NextResultSet_Call) Run ¶ added in v1.3.1
func (_c *RowsNextResultSet_NextResultSet_Call) Run(run func()) *RowsNextResultSet_NextResultSet_Call
func (*RowsNextResultSet_NextResultSet_Call) RunAndReturn ¶ added in v1.3.1
func (_c *RowsNextResultSet_NextResultSet_Call) RunAndReturn(run func() error) *RowsNextResultSet_NextResultSet_Call
type RowsNextResultSet_Next_Call ¶ added in v1.3.1
RowsNextResultSet_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'
func (*RowsNextResultSet_Next_Call) Return ¶ added in v1.3.1
func (_c *RowsNextResultSet_Next_Call) Return(_a0 error) *RowsNextResultSet_Next_Call
func (*RowsNextResultSet_Next_Call) Run ¶ added in v1.3.1
func (_c *RowsNextResultSet_Next_Call) Run(run func(dest []driver.Value)) *RowsNextResultSet_Next_Call
func (*RowsNextResultSet_Next_Call) RunAndReturn ¶ added in v1.3.1
func (_c *RowsNextResultSet_Next_Call) RunAndReturn(run func([]driver.Value) error) *RowsNextResultSet_Next_Call
type Transaction ¶ added in v1.3.1
Transaction is an autogenerated mock type for the Transaction type
func NewTransaction ¶ added in v1.3.1
func NewTransaction(t mockConstructorTestingTNewTransaction) *Transaction
NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Transaction) Commit ¶ added in v1.3.1
func (_m *Transaction) Commit() error
Commit provides a mock function with given fields:
func (*Transaction) EXPECT ¶ added in v1.3.1
func (_m *Transaction) EXPECT() *Transaction_Expecter
func (*Transaction) Execute ¶ added in v1.3.1
func (_m *Transaction) Execute(sqlstr string, args ...interface{}) (sql.Result, error)
Execute provides a mock function with given fields: sqlstr, args
type Transaction_Commit_Call ¶ added in v1.3.1
Transaction_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Transaction_Commit_Call) Return ¶ added in v1.3.1
func (_c *Transaction_Commit_Call) Return(_a0 error) *Transaction_Commit_Call
func (*Transaction_Commit_Call) Run ¶ added in v1.3.1
func (_c *Transaction_Commit_Call) Run(run func()) *Transaction_Commit_Call
func (*Transaction_Commit_Call) RunAndReturn ¶ added in v1.3.1
func (_c *Transaction_Commit_Call) RunAndReturn(run func() error) *Transaction_Commit_Call
type Transaction_Execute_Call ¶ added in v1.3.1
Transaction_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*Transaction_Execute_Call) Return ¶ added in v1.3.1
func (_c *Transaction_Execute_Call) Return(_a0 sql.Result, _a1 error) *Transaction_Execute_Call
func (*Transaction_Execute_Call) Run ¶ added in v1.3.1
func (_c *Transaction_Execute_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Execute_Call
func (*Transaction_Execute_Call) RunAndReturn ¶ added in v1.3.1
func (_c *Transaction_Execute_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Execute_Call
type Transaction_Expecter ¶ added in v1.3.1
type Transaction_Expecter struct {
// contains filtered or unexported fields
}
func (*Transaction_Expecter) Commit ¶ added in v1.3.1
func (_e *Transaction_Expecter) Commit() *Transaction_Commit_Call
Commit is a helper method to define mock.On call
func (*Transaction_Expecter) Execute ¶ added in v1.3.1
func (_e *Transaction_Expecter) Execute(sqlstr interface{}, args ...interface{}) *Transaction_Execute_Call
Execute is a helper method to define mock.On call
- sqlstr string
- args ...interface{}
func (*Transaction_Expecter) Insert ¶ added in v1.3.1
func (_e *Transaction_Expecter) Insert(sqlstr interface{}, args ...interface{}) *Transaction_Insert_Call
Insert is a helper method to define mock.On call
- sqlstr string
- args ...interface{}
func (*Transaction_Expecter) Update ¶ added in v1.3.1
func (_e *Transaction_Expecter) Update(sqlstr interface{}, args ...interface{}) *Transaction_Update_Call
Update is a helper method to define mock.On call
- sqlstr string
- args ...interface{}
type Transaction_Insert_Call ¶ added in v1.3.1
Transaction_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*Transaction_Insert_Call) Return ¶ added in v1.3.1
func (_c *Transaction_Insert_Call) Return(_a0 sql.Result, _a1 error) *Transaction_Insert_Call
func (*Transaction_Insert_Call) Run ¶ added in v1.3.1
func (_c *Transaction_Insert_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Insert_Call
func (*Transaction_Insert_Call) RunAndReturn ¶ added in v1.3.1
func (_c *Transaction_Insert_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Insert_Call
type Transaction_Update_Call ¶ added in v1.3.1
Transaction_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Transaction_Update_Call) Return ¶ added in v1.3.1
func (_c *Transaction_Update_Call) Return(_a0 sql.Result, _a1 error) *Transaction_Update_Call
func (*Transaction_Update_Call) Run ¶ added in v1.3.1
func (_c *Transaction_Update_Call) Run(run func(sqlstr string, args ...interface{})) *Transaction_Update_Call
func (*Transaction_Update_Call) RunAndReturn ¶ added in v1.3.1
func (_c *Transaction_Update_Call) RunAndReturn(run func(string, ...interface{}) (sql.Result, error)) *Transaction_Update_Call