Documentation ¶
Index ¶
- type MockAfterHook
- type MockAfterHook_After_Call
- func (_c *MockAfterHook_After_Call) Return(_a0 context.Context, _a1 error) *MockAfterHook_After_Call
- func (_c *MockAfterHook_After_Call) Run(run func(ctx context.Context, input *pgxhook.HookData)) *MockAfterHook_After_Call
- func (_c *MockAfterHook_After_Call) RunAndReturn(run func(context.Context, *pgxhook.HookData) (context.Context, error)) *MockAfterHook_After_Call
- type MockAfterHook_Expecter
- type MockBeforeHook
- type MockBeforeHook_Before_Call
- func (_c *MockBeforeHook_Before_Call) Return(_a0 context.Context, _a1 error) *MockBeforeHook_Before_Call
- func (_c *MockBeforeHook_Before_Call) Run(run func(ctx context.Context, input *pgxhook.HookData)) *MockBeforeHook_Before_Call
- func (_c *MockBeforeHook_Before_Call) RunAndReturn(run func(context.Context, *pgxhook.HookData) (context.Context, error)) *MockBeforeHook_Before_Call
- type MockBeforeHook_Expecter
- type MockConn
- func (_m *MockConn) Begin(ctx context.Context) (pgx.Tx, error)
- func (_m *MockConn) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
- func (_m *MockConn) Close(ctx context.Context) error
- func (_m *MockConn) Conn() pgxhook.InputConn
- func (_m *MockConn) EXPECT() *MockConn_Expecter
- func (_m *MockConn) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
- func (_m *MockConn) Ping(ctx context.Context) error
- func (_m *MockConn) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (_m *MockConn) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- func (_m *MockConn) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
- type MockConnCloser
- type MockConnCloser_Close_Call
- type MockConnCloser_Expecter
- type MockConn_BeginTx_Call
- func (_c *MockConn_BeginTx_Call) Return(_a0 pgx.Tx, _a1 error) *MockConn_BeginTx_Call
- func (_c *MockConn_BeginTx_Call) Run(run func(ctx context.Context, txOptions pgx.TxOptions)) *MockConn_BeginTx_Call
- func (_c *MockConn_BeginTx_Call) RunAndReturn(run func(context.Context, pgx.TxOptions) (pgx.Tx, error)) *MockConn_BeginTx_Call
- type MockConn_Begin_Call
- type MockConn_Close_Call
- type MockConn_Conn_Call
- type MockConn_Exec_Call
- func (_c *MockConn_Exec_Call) Return(_a0 pgconn.CommandTag, _a1 error) *MockConn_Exec_Call
- func (_c *MockConn_Exec_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_Exec_Call
- func (_c *MockConn_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockConn_Exec_Call
- type MockConn_Expecter
- func (_e *MockConn_Expecter) Begin(ctx interface{}) *MockConn_Begin_Call
- func (_e *MockConn_Expecter) BeginTx(ctx interface{}, txOptions interface{}) *MockConn_BeginTx_Call
- func (_e *MockConn_Expecter) Close(ctx interface{}) *MockConn_Close_Call
- func (_e *MockConn_Expecter) Conn() *MockConn_Conn_Call
- func (_e *MockConn_Expecter) Exec(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_Exec_Call
- func (_e *MockConn_Expecter) Ping(ctx interface{}) *MockConn_Ping_Call
- func (_e *MockConn_Expecter) Query(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_Query_Call
- func (_e *MockConn_Expecter) QueryRow(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_QueryRow_Call
- func (_e *MockConn_Expecter) SendBatch(ctx interface{}, b interface{}) *MockConn_SendBatch_Call
- type MockConn_Ping_Call
- type MockConn_QueryRow_Call
- func (_c *MockConn_QueryRow_Call) Return(_a0 pgx.Row) *MockConn_QueryRow_Call
- func (_c *MockConn_QueryRow_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_QueryRow_Call
- func (_c *MockConn_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *MockConn_QueryRow_Call
- type MockConn_Query_Call
- func (_c *MockConn_Query_Call) Return(_a0 pgx.Rows, _a1 error) *MockConn_Query_Call
- func (_c *MockConn_Query_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_Query_Call
- func (_c *MockConn_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockConn_Query_Call
- type MockConn_SendBatch_Call
- func (_c *MockConn_SendBatch_Call) Return(br pgx.BatchResults) *MockConn_SendBatch_Call
- func (_c *MockConn_SendBatch_Call) Run(run func(ctx context.Context, b *pgx.Batch)) *MockConn_SendBatch_Call
- func (_c *MockConn_SendBatch_Call) RunAndReturn(run func(context.Context, *pgx.Batch) pgx.BatchResults) *MockConn_SendBatch_Call
- type MockFullHook
- type MockFullHook_After_Call
- func (_c *MockFullHook_After_Call) Return(_a0 context.Context, _a1 error) *MockFullHook_After_Call
- func (_c *MockFullHook_After_Call) Run(run func(ctx context.Context, input *pgxhook.HookData)) *MockFullHook_After_Call
- func (_c *MockFullHook_After_Call) RunAndReturn(run func(context.Context, *pgxhook.HookData) (context.Context, error)) *MockFullHook_After_Call
- type MockFullHook_Before_Call
- func (_c *MockFullHook_Before_Call) Return(_a0 context.Context, _a1 error) *MockFullHook_Before_Call
- func (_c *MockFullHook_Before_Call) Run(run func(ctx context.Context, input *pgxhook.HookData)) *MockFullHook_Before_Call
- func (_c *MockFullHook_Before_Call) RunAndReturn(run func(context.Context, *pgxhook.HookData) (context.Context, error)) *MockFullHook_Before_Call
- type MockFullHook_Expecter
- type MockHookConnOption
- type MockHookConnOption_Expecter
- type MockHookConnOption_apply_Call
- func (_c *MockHookConnOption_apply_Call) Return() *MockHookConnOption_apply_Call
- func (_c *MockHookConnOption_apply_Call) Run(run func(s *pgxhook.HookConn)) *MockHookConnOption_apply_Call
- func (_c *MockHookConnOption_apply_Call) RunAndReturn(run func(*pgxhook.HookConn)) *MockHookConnOption_apply_Call
- type MockInputConn
- func (_m *MockInputConn) Begin(ctx context.Context) (pgx.Tx, error)
- func (_m *MockInputConn) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
- func (_m *MockInputConn) EXPECT() *MockInputConn_Expecter
- func (_m *MockInputConn) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
- func (_m *MockInputConn) Ping(ctx context.Context) error
- func (_m *MockInputConn) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (_m *MockInputConn) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- func (_m *MockInputConn) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
- type MockInputConn_BeginTx_Call
- func (_c *MockInputConn_BeginTx_Call) Return(_a0 pgx.Tx, _a1 error) *MockInputConn_BeginTx_Call
- func (_c *MockInputConn_BeginTx_Call) Run(run func(ctx context.Context, txOptions pgx.TxOptions)) *MockInputConn_BeginTx_Call
- func (_c *MockInputConn_BeginTx_Call) RunAndReturn(run func(context.Context, pgx.TxOptions) (pgx.Tx, error)) *MockInputConn_BeginTx_Call
- type MockInputConn_Begin_Call
- func (_c *MockInputConn_Begin_Call) Return(_a0 pgx.Tx, _a1 error) *MockInputConn_Begin_Call
- func (_c *MockInputConn_Begin_Call) Run(run func(ctx context.Context)) *MockInputConn_Begin_Call
- func (_c *MockInputConn_Begin_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *MockInputConn_Begin_Call
- type MockInputConn_Exec_Call
- func (_c *MockInputConn_Exec_Call) Return(_a0 pgconn.CommandTag, _a1 error) *MockInputConn_Exec_Call
- func (_c *MockInputConn_Exec_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_Exec_Call
- func (_c *MockInputConn_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockInputConn_Exec_Call
- type MockInputConn_Expecter
- func (_e *MockInputConn_Expecter) Begin(ctx interface{}) *MockInputConn_Begin_Call
- func (_e *MockInputConn_Expecter) BeginTx(ctx interface{}, txOptions interface{}) *MockInputConn_BeginTx_Call
- func (_e *MockInputConn_Expecter) Exec(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_Exec_Call
- func (_e *MockInputConn_Expecter) Ping(ctx interface{}) *MockInputConn_Ping_Call
- func (_e *MockInputConn_Expecter) Query(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_Query_Call
- func (_e *MockInputConn_Expecter) QueryRow(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_QueryRow_Call
- func (_e *MockInputConn_Expecter) SendBatch(ctx interface{}, b interface{}) *MockInputConn_SendBatch_Call
- type MockInputConn_Ping_Call
- type MockInputConn_QueryRow_Call
- func (_c *MockInputConn_QueryRow_Call) Return(_a0 pgx.Row) *MockInputConn_QueryRow_Call
- func (_c *MockInputConn_QueryRow_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_QueryRow_Call
- func (_c *MockInputConn_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *MockInputConn_QueryRow_Call
- type MockInputConn_Query_Call
- func (_c *MockInputConn_Query_Call) Return(_a0 pgx.Rows, _a1 error) *MockInputConn_Query_Call
- func (_c *MockInputConn_Query_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_Query_Call
- func (_c *MockInputConn_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockInputConn_Query_Call
- type MockInputConn_SendBatch_Call
- func (_c *MockInputConn_SendBatch_Call) Return(br pgx.BatchResults) *MockInputConn_SendBatch_Call
- func (_c *MockInputConn_SendBatch_Call) Run(run func(ctx context.Context, b *pgx.Batch)) *MockInputConn_SendBatch_Call
- func (_c *MockInputConn_SendBatch_Call) RunAndReturn(run func(context.Context, *pgx.Batch) pgx.BatchResults) *MockInputConn_SendBatch_Call
- type MockPoolCloser
- type MockPoolCloser_Close_Call
- type MockPoolCloser_Expecter
- type MockfuncHookConnOption
- type MockfuncHookConnOption_Execute_Call
- func (_c *MockfuncHookConnOption_Execute_Call) Return() *MockfuncHookConnOption_Execute_Call
- func (_c *MockfuncHookConnOption_Execute_Call) Run(run func(s *pgxhook.HookConn)) *MockfuncHookConnOption_Execute_Call
- func (_c *MockfuncHookConnOption_Execute_Call) RunAndReturn(run func(*pgxhook.HookConn)) *MockfuncHookConnOption_Execute_Call
- type MockfuncHookConnOption_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAfterHook ¶
MockAfterHook is an autogenerated mock type for the AfterHook type
func NewMockAfterHook ¶
func NewMockAfterHook(t interface { mock.TestingT Cleanup(func()) }) *MockAfterHook
NewMockAfterHook creates a new instance of MockAfterHook. 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 (*MockAfterHook) After ¶
func (_m *MockAfterHook) After(ctx context.Context, input *pgxhook.HookData) (context.Context, error)
After provides a mock function with given fields: ctx, input
func (*MockAfterHook) EXPECT ¶
func (_m *MockAfterHook) EXPECT() *MockAfterHook_Expecter
type MockAfterHook_After_Call ¶
MockAfterHook_After_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'After'
func (*MockAfterHook_After_Call) Return ¶
func (_c *MockAfterHook_After_Call) Return(_a0 context.Context, _a1 error) *MockAfterHook_After_Call
func (*MockAfterHook_After_Call) Run ¶
func (_c *MockAfterHook_After_Call) Run(run func(ctx context.Context, input *pgxhook.HookData)) *MockAfterHook_After_Call
func (*MockAfterHook_After_Call) RunAndReturn ¶
func (_c *MockAfterHook_After_Call) RunAndReturn(run func(context.Context, *pgxhook.HookData) (context.Context, error)) *MockAfterHook_After_Call
type MockAfterHook_Expecter ¶
type MockAfterHook_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAfterHook_Expecter) After ¶
func (_e *MockAfterHook_Expecter) After(ctx interface{}, input interface{}) *MockAfterHook_After_Call
After is a helper method to define mock.On call
- ctx context.Context
- input *pgxhook.HookData
type MockBeforeHook ¶
MockBeforeHook is an autogenerated mock type for the BeforeHook type
func NewMockBeforeHook ¶
func NewMockBeforeHook(t interface { mock.TestingT Cleanup(func()) }) *MockBeforeHook
NewMockBeforeHook creates a new instance of MockBeforeHook. 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 (*MockBeforeHook) Before ¶
func (_m *MockBeforeHook) Before(ctx context.Context, input *pgxhook.HookData) (context.Context, error)
Before provides a mock function with given fields: ctx, input
func (*MockBeforeHook) EXPECT ¶
func (_m *MockBeforeHook) EXPECT() *MockBeforeHook_Expecter
type MockBeforeHook_Before_Call ¶
MockBeforeHook_Before_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Before'
func (*MockBeforeHook_Before_Call) Return ¶
func (_c *MockBeforeHook_Before_Call) Return(_a0 context.Context, _a1 error) *MockBeforeHook_Before_Call
func (*MockBeforeHook_Before_Call) Run ¶
func (_c *MockBeforeHook_Before_Call) Run(run func(ctx context.Context, input *pgxhook.HookData)) *MockBeforeHook_Before_Call
func (*MockBeforeHook_Before_Call) RunAndReturn ¶
func (_c *MockBeforeHook_Before_Call) RunAndReturn(run func(context.Context, *pgxhook.HookData) (context.Context, error)) *MockBeforeHook_Before_Call
type MockBeforeHook_Expecter ¶
type MockBeforeHook_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBeforeHook_Expecter) Before ¶
func (_e *MockBeforeHook_Expecter) Before(ctx interface{}, input interface{}) *MockBeforeHook_Before_Call
Before is a helper method to define mock.On call
- ctx context.Context
- input *pgxhook.HookData
type MockConn ¶
MockConn is an autogenerated mock type for the Conn type
func NewMockConn ¶
NewMockConn creates a new instance of MockConn. 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 (*MockConn) EXPECT ¶
func (_m *MockConn) EXPECT() *MockConn_Expecter
func (*MockConn) Exec ¶
func (_m *MockConn) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
Exec provides a mock function with given fields: ctx, sql, args
type MockConnCloser ¶
MockConnCloser is an autogenerated mock type for the ConnCloser type
func NewMockConnCloser ¶
func NewMockConnCloser(t interface { mock.TestingT Cleanup(func()) }) *MockConnCloser
NewMockConnCloser creates a new instance of MockConnCloser. 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 (*MockConnCloser) Close ¶
func (_m *MockConnCloser) Close(ctx context.Context) error
Close provides a mock function with given fields: ctx
func (*MockConnCloser) EXPECT ¶
func (_m *MockConnCloser) EXPECT() *MockConnCloser_Expecter
type MockConnCloser_Close_Call ¶
MockConnCloser_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockConnCloser_Close_Call) Return ¶
func (_c *MockConnCloser_Close_Call) Return(_a0 error) *MockConnCloser_Close_Call
func (*MockConnCloser_Close_Call) Run ¶
func (_c *MockConnCloser_Close_Call) Run(run func(ctx context.Context)) *MockConnCloser_Close_Call
func (*MockConnCloser_Close_Call) RunAndReturn ¶
func (_c *MockConnCloser_Close_Call) RunAndReturn(run func(context.Context) error) *MockConnCloser_Close_Call
type MockConnCloser_Expecter ¶
type MockConnCloser_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConnCloser_Expecter) Close ¶
func (_e *MockConnCloser_Expecter) Close(ctx interface{}) *MockConnCloser_Close_Call
Close is a helper method to define mock.On call
- ctx context.Context
type MockConn_BeginTx_Call ¶
MockConn_BeginTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginTx'
func (*MockConn_BeginTx_Call) Return ¶
func (_c *MockConn_BeginTx_Call) Return(_a0 pgx.Tx, _a1 error) *MockConn_BeginTx_Call
func (*MockConn_BeginTx_Call) Run ¶
func (_c *MockConn_BeginTx_Call) Run(run func(ctx context.Context, txOptions pgx.TxOptions)) *MockConn_BeginTx_Call
func (*MockConn_BeginTx_Call) RunAndReturn ¶
func (_c *MockConn_BeginTx_Call) RunAndReturn(run func(context.Context, pgx.TxOptions) (pgx.Tx, error)) *MockConn_BeginTx_Call
type MockConn_Begin_Call ¶
MockConn_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*MockConn_Begin_Call) Return ¶
func (_c *MockConn_Begin_Call) Return(_a0 pgx.Tx, _a1 error) *MockConn_Begin_Call
func (*MockConn_Begin_Call) Run ¶
func (_c *MockConn_Begin_Call) Run(run func(ctx context.Context)) *MockConn_Begin_Call
func (*MockConn_Begin_Call) RunAndReturn ¶
func (_c *MockConn_Begin_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *MockConn_Begin_Call
type MockConn_Close_Call ¶
MockConn_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockConn_Close_Call) Return ¶
func (_c *MockConn_Close_Call) Return(_a0 error) *MockConn_Close_Call
func (*MockConn_Close_Call) Run ¶
func (_c *MockConn_Close_Call) Run(run func(ctx context.Context)) *MockConn_Close_Call
func (*MockConn_Close_Call) RunAndReturn ¶
func (_c *MockConn_Close_Call) RunAndReturn(run func(context.Context) error) *MockConn_Close_Call
type MockConn_Conn_Call ¶
MockConn_Conn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Conn'
func (*MockConn_Conn_Call) Return ¶
func (_c *MockConn_Conn_Call) Return(_a0 pgxhook.InputConn) *MockConn_Conn_Call
func (*MockConn_Conn_Call) Run ¶
func (_c *MockConn_Conn_Call) Run(run func()) *MockConn_Conn_Call
func (*MockConn_Conn_Call) RunAndReturn ¶
func (_c *MockConn_Conn_Call) RunAndReturn(run func() pgxhook.InputConn) *MockConn_Conn_Call
type MockConn_Exec_Call ¶
MockConn_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockConn_Exec_Call) Return ¶
func (_c *MockConn_Exec_Call) Return(_a0 pgconn.CommandTag, _a1 error) *MockConn_Exec_Call
func (*MockConn_Exec_Call) Run ¶
func (_c *MockConn_Exec_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_Exec_Call
func (*MockConn_Exec_Call) RunAndReturn ¶
func (_c *MockConn_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockConn_Exec_Call
type MockConn_Expecter ¶
type MockConn_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConn_Expecter) Begin ¶
func (_e *MockConn_Expecter) Begin(ctx interface{}) *MockConn_Begin_Call
Begin is a helper method to define mock.On call
- ctx context.Context
func (*MockConn_Expecter) BeginTx ¶
func (_e *MockConn_Expecter) BeginTx(ctx interface{}, txOptions interface{}) *MockConn_BeginTx_Call
BeginTx is a helper method to define mock.On call
- ctx context.Context
- txOptions pgx.TxOptions
func (*MockConn_Expecter) Close ¶
func (_e *MockConn_Expecter) Close(ctx interface{}) *MockConn_Close_Call
Close is a helper method to define mock.On call
- ctx context.Context
func (*MockConn_Expecter) Conn ¶
func (_e *MockConn_Expecter) Conn() *MockConn_Conn_Call
Conn is a helper method to define mock.On call
func (*MockConn_Expecter) Exec ¶
func (_e *MockConn_Expecter) Exec(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- sql string
- args ...interface{}
func (*MockConn_Expecter) Ping ¶
func (_e *MockConn_Expecter) Ping(ctx interface{}) *MockConn_Ping_Call
Ping is a helper method to define mock.On call
- ctx context.Context
func (*MockConn_Expecter) Query ¶
func (_e *MockConn_Expecter) Query(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_Query_Call
Query is a helper method to define mock.On call
- ctx context.Context
- sql string
- args ...interface{}
func (*MockConn_Expecter) QueryRow ¶
func (_e *MockConn_Expecter) QueryRow(ctx interface{}, sql interface{}, args ...interface{}) *MockConn_QueryRow_Call
QueryRow is a helper method to define mock.On call
- ctx context.Context
- sql string
- args ...interface{}
func (*MockConn_Expecter) SendBatch ¶
func (_e *MockConn_Expecter) SendBatch(ctx interface{}, b interface{}) *MockConn_SendBatch_Call
SendBatch is a helper method to define mock.On call
- ctx context.Context
- b *pgx.Batch
type MockConn_Ping_Call ¶
MockConn_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'
func (*MockConn_Ping_Call) Return ¶
func (_c *MockConn_Ping_Call) Return(_a0 error) *MockConn_Ping_Call
func (*MockConn_Ping_Call) Run ¶
func (_c *MockConn_Ping_Call) Run(run func(ctx context.Context)) *MockConn_Ping_Call
func (*MockConn_Ping_Call) RunAndReturn ¶
func (_c *MockConn_Ping_Call) RunAndReturn(run func(context.Context) error) *MockConn_Ping_Call
type MockConn_QueryRow_Call ¶
MockConn_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'
func (*MockConn_QueryRow_Call) Return ¶
func (_c *MockConn_QueryRow_Call) Return(_a0 pgx.Row) *MockConn_QueryRow_Call
func (*MockConn_QueryRow_Call) Run ¶
func (_c *MockConn_QueryRow_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_QueryRow_Call
func (*MockConn_QueryRow_Call) RunAndReturn ¶
func (_c *MockConn_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *MockConn_QueryRow_Call
type MockConn_Query_Call ¶
MockConn_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*MockConn_Query_Call) Return ¶
func (_c *MockConn_Query_Call) Return(_a0 pgx.Rows, _a1 error) *MockConn_Query_Call
func (*MockConn_Query_Call) Run ¶
func (_c *MockConn_Query_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockConn_Query_Call
func (*MockConn_Query_Call) RunAndReturn ¶
func (_c *MockConn_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockConn_Query_Call
type MockConn_SendBatch_Call ¶
MockConn_SendBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendBatch'
func (*MockConn_SendBatch_Call) Return ¶
func (_c *MockConn_SendBatch_Call) Return(br pgx.BatchResults) *MockConn_SendBatch_Call
func (*MockConn_SendBatch_Call) Run ¶
func (_c *MockConn_SendBatch_Call) Run(run func(ctx context.Context, b *pgx.Batch)) *MockConn_SendBatch_Call
func (*MockConn_SendBatch_Call) RunAndReturn ¶
func (_c *MockConn_SendBatch_Call) RunAndReturn(run func(context.Context, *pgx.Batch) pgx.BatchResults) *MockConn_SendBatch_Call
type MockFullHook ¶
MockFullHook is an autogenerated mock type for the FullHook type
func NewMockFullHook ¶
func NewMockFullHook(t interface { mock.TestingT Cleanup(func()) }) *MockFullHook
NewMockFullHook creates a new instance of MockFullHook. 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 (*MockFullHook) After ¶
func (_m *MockFullHook) After(ctx context.Context, input *pgxhook.HookData) (context.Context, error)
After provides a mock function with given fields: ctx, input
func (*MockFullHook) Before ¶
func (_m *MockFullHook) Before(ctx context.Context, input *pgxhook.HookData) (context.Context, error)
Before provides a mock function with given fields: ctx, input
func (*MockFullHook) EXPECT ¶
func (_m *MockFullHook) EXPECT() *MockFullHook_Expecter
type MockFullHook_After_Call ¶
MockFullHook_After_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'After'
func (*MockFullHook_After_Call) Return ¶
func (_c *MockFullHook_After_Call) Return(_a0 context.Context, _a1 error) *MockFullHook_After_Call
func (*MockFullHook_After_Call) Run ¶
func (_c *MockFullHook_After_Call) Run(run func(ctx context.Context, input *pgxhook.HookData)) *MockFullHook_After_Call
func (*MockFullHook_After_Call) RunAndReturn ¶
func (_c *MockFullHook_After_Call) RunAndReturn(run func(context.Context, *pgxhook.HookData) (context.Context, error)) *MockFullHook_After_Call
type MockFullHook_Before_Call ¶
MockFullHook_Before_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Before'
func (*MockFullHook_Before_Call) Return ¶
func (_c *MockFullHook_Before_Call) Return(_a0 context.Context, _a1 error) *MockFullHook_Before_Call
func (*MockFullHook_Before_Call) Run ¶
func (_c *MockFullHook_Before_Call) Run(run func(ctx context.Context, input *pgxhook.HookData)) *MockFullHook_Before_Call
func (*MockFullHook_Before_Call) RunAndReturn ¶
func (_c *MockFullHook_Before_Call) RunAndReturn(run func(context.Context, *pgxhook.HookData) (context.Context, error)) *MockFullHook_Before_Call
type MockFullHook_Expecter ¶
type MockFullHook_Expecter struct {
// contains filtered or unexported fields
}
func (*MockFullHook_Expecter) After ¶
func (_e *MockFullHook_Expecter) After(ctx interface{}, input interface{}) *MockFullHook_After_Call
After is a helper method to define mock.On call
- ctx context.Context
- input *pgxhook.HookData
func (*MockFullHook_Expecter) Before ¶
func (_e *MockFullHook_Expecter) Before(ctx interface{}, input interface{}) *MockFullHook_Before_Call
Before is a helper method to define mock.On call
- ctx context.Context
- input *pgxhook.HookData
type MockHookConnOption ¶
MockHookConnOption is an autogenerated mock type for the HookConnOption type
func NewMockHookConnOption ¶
func NewMockHookConnOption(t interface { mock.TestingT Cleanup(func()) }) *MockHookConnOption
NewMockHookConnOption creates a new instance of MockHookConnOption. 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 (*MockHookConnOption) EXPECT ¶
func (_m *MockHookConnOption) EXPECT() *MockHookConnOption_Expecter
type MockHookConnOption_Expecter ¶
type MockHookConnOption_Expecter struct {
// contains filtered or unexported fields
}
type MockHookConnOption_apply_Call ¶
MockHookConnOption_apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'apply'
func (*MockHookConnOption_apply_Call) Return ¶
func (_c *MockHookConnOption_apply_Call) Return() *MockHookConnOption_apply_Call
func (*MockHookConnOption_apply_Call) Run ¶
func (_c *MockHookConnOption_apply_Call) Run(run func(s *pgxhook.HookConn)) *MockHookConnOption_apply_Call
func (*MockHookConnOption_apply_Call) RunAndReturn ¶
func (_c *MockHookConnOption_apply_Call) RunAndReturn(run func(*pgxhook.HookConn)) *MockHookConnOption_apply_Call
type MockInputConn ¶
MockInputConn is an autogenerated mock type for the InputConn type
func NewMockInputConn ¶
func NewMockInputConn(t interface { mock.TestingT Cleanup(func()) }) *MockInputConn
NewMockInputConn creates a new instance of MockInputConn. 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 (*MockInputConn) EXPECT ¶
func (_m *MockInputConn) EXPECT() *MockInputConn_Expecter
func (*MockInputConn) Exec ¶
func (_m *MockInputConn) Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error)
Exec provides a mock function with given fields: ctx, sql, args
func (*MockInputConn) Ping ¶
func (_m *MockInputConn) Ping(ctx context.Context) error
Ping provides a mock function with given fields: ctx
func (*MockInputConn) Query ¶
func (_m *MockInputConn) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
Query provides a mock function with given fields: ctx, sql, args
func (*MockInputConn) QueryRow ¶
QueryRow provides a mock function with given fields: ctx, sql, args
func (*MockInputConn) SendBatch ¶
func (_m *MockInputConn) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
SendBatch provides a mock function with given fields: ctx, b
type MockInputConn_BeginTx_Call ¶
MockInputConn_BeginTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginTx'
func (*MockInputConn_BeginTx_Call) Return ¶
func (_c *MockInputConn_BeginTx_Call) Return(_a0 pgx.Tx, _a1 error) *MockInputConn_BeginTx_Call
func (*MockInputConn_BeginTx_Call) Run ¶
func (_c *MockInputConn_BeginTx_Call) Run(run func(ctx context.Context, txOptions pgx.TxOptions)) *MockInputConn_BeginTx_Call
func (*MockInputConn_BeginTx_Call) RunAndReturn ¶
func (_c *MockInputConn_BeginTx_Call) RunAndReturn(run func(context.Context, pgx.TxOptions) (pgx.Tx, error)) *MockInputConn_BeginTx_Call
type MockInputConn_Begin_Call ¶
MockInputConn_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'
func (*MockInputConn_Begin_Call) Return ¶
func (_c *MockInputConn_Begin_Call) Return(_a0 pgx.Tx, _a1 error) *MockInputConn_Begin_Call
func (*MockInputConn_Begin_Call) Run ¶
func (_c *MockInputConn_Begin_Call) Run(run func(ctx context.Context)) *MockInputConn_Begin_Call
func (*MockInputConn_Begin_Call) RunAndReturn ¶
func (_c *MockInputConn_Begin_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *MockInputConn_Begin_Call
type MockInputConn_Exec_Call ¶
MockInputConn_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockInputConn_Exec_Call) Return ¶
func (_c *MockInputConn_Exec_Call) Return(_a0 pgconn.CommandTag, _a1 error) *MockInputConn_Exec_Call
func (*MockInputConn_Exec_Call) Run ¶
func (_c *MockInputConn_Exec_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_Exec_Call
func (*MockInputConn_Exec_Call) RunAndReturn ¶
func (_c *MockInputConn_Exec_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgconn.CommandTag, error)) *MockInputConn_Exec_Call
type MockInputConn_Expecter ¶
type MockInputConn_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInputConn_Expecter) Begin ¶
func (_e *MockInputConn_Expecter) Begin(ctx interface{}) *MockInputConn_Begin_Call
Begin is a helper method to define mock.On call
- ctx context.Context
func (*MockInputConn_Expecter) BeginTx ¶
func (_e *MockInputConn_Expecter) BeginTx(ctx interface{}, txOptions interface{}) *MockInputConn_BeginTx_Call
BeginTx is a helper method to define mock.On call
- ctx context.Context
- txOptions pgx.TxOptions
func (*MockInputConn_Expecter) Exec ¶
func (_e *MockInputConn_Expecter) Exec(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- sql string
- args ...interface{}
func (*MockInputConn_Expecter) Ping ¶
func (_e *MockInputConn_Expecter) Ping(ctx interface{}) *MockInputConn_Ping_Call
Ping is a helper method to define mock.On call
- ctx context.Context
func (*MockInputConn_Expecter) Query ¶
func (_e *MockInputConn_Expecter) Query(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_Query_Call
Query is a helper method to define mock.On call
- ctx context.Context
- sql string
- args ...interface{}
func (*MockInputConn_Expecter) QueryRow ¶
func (_e *MockInputConn_Expecter) QueryRow(ctx interface{}, sql interface{}, args ...interface{}) *MockInputConn_QueryRow_Call
QueryRow is a helper method to define mock.On call
- ctx context.Context
- sql string
- args ...interface{}
func (*MockInputConn_Expecter) SendBatch ¶
func (_e *MockInputConn_Expecter) SendBatch(ctx interface{}, b interface{}) *MockInputConn_SendBatch_Call
SendBatch is a helper method to define mock.On call
- ctx context.Context
- b *pgx.Batch
type MockInputConn_Ping_Call ¶
MockInputConn_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'
func (*MockInputConn_Ping_Call) Return ¶
func (_c *MockInputConn_Ping_Call) Return(_a0 error) *MockInputConn_Ping_Call
func (*MockInputConn_Ping_Call) Run ¶
func (_c *MockInputConn_Ping_Call) Run(run func(ctx context.Context)) *MockInputConn_Ping_Call
func (*MockInputConn_Ping_Call) RunAndReturn ¶
func (_c *MockInputConn_Ping_Call) RunAndReturn(run func(context.Context) error) *MockInputConn_Ping_Call
type MockInputConn_QueryRow_Call ¶
MockInputConn_QueryRow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryRow'
func (*MockInputConn_QueryRow_Call) Return ¶
func (_c *MockInputConn_QueryRow_Call) Return(_a0 pgx.Row) *MockInputConn_QueryRow_Call
func (*MockInputConn_QueryRow_Call) Run ¶
func (_c *MockInputConn_QueryRow_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_QueryRow_Call
func (*MockInputConn_QueryRow_Call) RunAndReturn ¶
func (_c *MockInputConn_QueryRow_Call) RunAndReturn(run func(context.Context, string, ...interface{}) pgx.Row) *MockInputConn_QueryRow_Call
type MockInputConn_Query_Call ¶
MockInputConn_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*MockInputConn_Query_Call) Return ¶
func (_c *MockInputConn_Query_Call) Return(_a0 pgx.Rows, _a1 error) *MockInputConn_Query_Call
func (*MockInputConn_Query_Call) Run ¶
func (_c *MockInputConn_Query_Call) Run(run func(ctx context.Context, sql string, args ...interface{})) *MockInputConn_Query_Call
func (*MockInputConn_Query_Call) RunAndReturn ¶
func (_c *MockInputConn_Query_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (pgx.Rows, error)) *MockInputConn_Query_Call
type MockInputConn_SendBatch_Call ¶
MockInputConn_SendBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendBatch'
func (*MockInputConn_SendBatch_Call) Return ¶
func (_c *MockInputConn_SendBatch_Call) Return(br pgx.BatchResults) *MockInputConn_SendBatch_Call
func (*MockInputConn_SendBatch_Call) Run ¶
func (_c *MockInputConn_SendBatch_Call) Run(run func(ctx context.Context, b *pgx.Batch)) *MockInputConn_SendBatch_Call
func (*MockInputConn_SendBatch_Call) RunAndReturn ¶
func (_c *MockInputConn_SendBatch_Call) RunAndReturn(run func(context.Context, *pgx.Batch) pgx.BatchResults) *MockInputConn_SendBatch_Call
type MockPoolCloser ¶
MockPoolCloser is an autogenerated mock type for the PoolCloser type
func NewMockPoolCloser ¶
func NewMockPoolCloser(t interface { mock.TestingT Cleanup(func()) }) *MockPoolCloser
NewMockPoolCloser creates a new instance of MockPoolCloser. 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 (*MockPoolCloser) Close ¶
func (_m *MockPoolCloser) Close()
Close provides a mock function with given fields:
func (*MockPoolCloser) EXPECT ¶
func (_m *MockPoolCloser) EXPECT() *MockPoolCloser_Expecter
type MockPoolCloser_Close_Call ¶
MockPoolCloser_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockPoolCloser_Close_Call) Return ¶
func (_c *MockPoolCloser_Close_Call) Return() *MockPoolCloser_Close_Call
func (*MockPoolCloser_Close_Call) Run ¶
func (_c *MockPoolCloser_Close_Call) Run(run func()) *MockPoolCloser_Close_Call
func (*MockPoolCloser_Close_Call) RunAndReturn ¶
func (_c *MockPoolCloser_Close_Call) RunAndReturn(run func()) *MockPoolCloser_Close_Call
type MockPoolCloser_Expecter ¶
type MockPoolCloser_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPoolCloser_Expecter) Close ¶
func (_e *MockPoolCloser_Expecter) Close() *MockPoolCloser_Close_Call
Close is a helper method to define mock.On call
type MockfuncHookConnOption ¶
MockfuncHookConnOption is an autogenerated mock type for the funcHookConnOption type
func NewMockfuncHookConnOption ¶
func NewMockfuncHookConnOption(t interface { mock.TestingT Cleanup(func()) }) *MockfuncHookConnOption
NewMockfuncHookConnOption creates a new instance of MockfuncHookConnOption. 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 (*MockfuncHookConnOption) EXPECT ¶
func (_m *MockfuncHookConnOption) EXPECT() *MockfuncHookConnOption_Expecter
func (*MockfuncHookConnOption) Execute ¶
func (_m *MockfuncHookConnOption) Execute(s *pgxhook.HookConn)
Execute provides a mock function with given fields: s
type MockfuncHookConnOption_Execute_Call ¶
MockfuncHookConnOption_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockfuncHookConnOption_Execute_Call) Return ¶
func (_c *MockfuncHookConnOption_Execute_Call) Return() *MockfuncHookConnOption_Execute_Call
func (*MockfuncHookConnOption_Execute_Call) Run ¶
func (_c *MockfuncHookConnOption_Execute_Call) Run(run func(s *pgxhook.HookConn)) *MockfuncHookConnOption_Execute_Call
func (*MockfuncHookConnOption_Execute_Call) RunAndReturn ¶
func (_c *MockfuncHookConnOption_Execute_Call) RunAndReturn(run func(*pgxhook.HookConn)) *MockfuncHookConnOption_Execute_Call
type MockfuncHookConnOption_Expecter ¶
type MockfuncHookConnOption_Expecter struct {
// contains filtered or unexported fields
}
func (*MockfuncHookConnOption_Expecter) Execute ¶
func (_e *MockfuncHookConnOption_Expecter) Execute(s interface{}) *MockfuncHookConnOption_Execute_Call
Execute is a helper method to define mock.On call
- s *pgxhook.HookConn