Documentation ¶
Overview ¶
Package mock_postgres is a generated GoMock package.
Index ¶
- type MockBasePool
- func (m *MockBasePool) Begin(arg0 context.Context) (pgx.Tx, error)
- func (m *MockBasePool) Close()
- func (m *MockBasePool) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, ...) (int64, error)
- func (m *MockBasePool) EXPECT() *MockBasePoolMockRecorder
- func (m *MockBasePool) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
- func (m *MockBasePool) Ping(arg0 context.Context) error
- func (m *MockBasePool) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
- func (m *MockBasePool) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) pgx.Row
- func (m *MockBasePool) SendBatch(arg0 context.Context, arg1 *pgx.Batch) pgx.BatchResults
- func (m *MockBasePool) Stat() *pgxpool.Stat
- type MockBasePoolMockRecorder
- func (mr *MockBasePoolMockRecorder) Begin(arg0 interface{}) *gomock.Call
- func (mr *MockBasePoolMockRecorder) Close() *gomock.Call
- func (mr *MockBasePoolMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockBasePoolMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBasePoolMockRecorder) Ping(arg0 interface{}) *gomock.Call
- func (mr *MockBasePoolMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBasePoolMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockBasePoolMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBasePoolMockRecorder) Stat() *gomock.Call
- type MockPool
- func (m *MockPool) Close()
- func (m *MockPool) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, ...) (int64, error)
- func (m *MockPool) EXPECT() *MockPoolMockRecorder
- func (m *MockPool) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
- func (m *MockPool) Ping(arg0 context.Context) error
- func (m *MockPool) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
- func (m *MockPool) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) pgx.Row
- func (m *MockPool) SendBatch(arg0 context.Context, arg1 *pgx.Batch) error
- func (m *MockPool) WithTransaction(arg0 context.Context, arg1 func(context.Context, pgx.Tx) error) error
- type MockPoolMockRecorder
- func (mr *MockPoolMockRecorder) Close() *gomock.Call
- func (mr *MockPoolMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Ping(arg0 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) WithTransaction(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBasePool ¶
type MockBasePool struct {
// contains filtered or unexported fields
}
MockBasePool is a mock of BasePool interface.
func NewMockBasePool ¶
func NewMockBasePool(ctrl *gomock.Controller) *MockBasePool
NewMockBasePool creates a new mock instance.
func (*MockBasePool) Begin ¶
Begin mocks base method.
func (*MockBasePool) CopyFrom ¶
func (m *MockBasePool) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, arg3 pgx.CopyFromSource) (int64, error)
CopyFrom mocks base method.
func (*MockBasePool) EXPECT ¶
func (m *MockBasePool) EXPECT() *MockBasePoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBasePool) Exec ¶
func (m *MockBasePool) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
Exec mocks base method.
func (*MockBasePool) Ping ¶
func (m *MockBasePool) Ping(arg0 context.Context) error
Ping mocks base method.
func (*MockBasePool) Query ¶
func (m *MockBasePool) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
Query mocks base method.
func (*MockBasePool) QueryRow ¶
QueryRow mocks base method.
func (*MockBasePool) SendBatch ¶
func (m *MockBasePool) SendBatch(arg0 context.Context, arg1 *pgx.Batch) pgx.BatchResults
SendBatch mocks base method.
type MockBasePoolMockRecorder ¶
type MockBasePoolMockRecorder struct {
// contains filtered or unexported fields
}
MockBasePoolMockRecorder is the mock recorder for MockBasePool.
func (*MockBasePoolMockRecorder) Begin ¶
func (mr *MockBasePoolMockRecorder) Begin(arg0 interface{}) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockBasePoolMockRecorder) Close ¶
func (mr *MockBasePoolMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockBasePoolMockRecorder) CopyFrom ¶
func (mr *MockBasePoolMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CopyFrom indicates an expected call of CopyFrom.
func (*MockBasePoolMockRecorder) Exec ¶
func (mr *MockBasePoolMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockBasePoolMockRecorder) Ping ¶
func (mr *MockBasePoolMockRecorder) Ping(arg0 interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockBasePoolMockRecorder) Query ¶
func (mr *MockBasePoolMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockBasePoolMockRecorder) QueryRow ¶
func (mr *MockBasePoolMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockBasePoolMockRecorder) SendBatch ¶
func (mr *MockBasePoolMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call
SendBatch indicates an expected call of SendBatch.
func (*MockBasePoolMockRecorder) Stat ¶
func (mr *MockBasePoolMockRecorder) Stat() *gomock.Call
Stat indicates an expected call of Stat.
type MockPool ¶
type MockPool struct {
// contains filtered or unexported fields
}
MockPool is a mock of Pool interface.
func NewMockPool ¶
func NewMockPool(ctrl *gomock.Controller) *MockPool
NewMockPool creates a new mock instance.
func (*MockPool) CopyFrom ¶
func (m *MockPool) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, arg3 pgx.CopyFromSource) (int64, error)
CopyFrom mocks base method.
func (*MockPool) EXPECT ¶
func (m *MockPool) EXPECT() *MockPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPool) Exec ¶
func (m *MockPool) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
Exec mocks base method.
func (*MockPool) Query ¶
Query mocks base method.
func (*MockPool) QueryRow ¶
QueryRow mocks base method.
func (*MockPool) SendBatch ¶
SendBatch mocks base method.
type MockPoolMockRecorder ¶
type MockPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockPoolMockRecorder is the mock recorder for MockPool.
func (*MockPoolMockRecorder) Close ¶
func (mr *MockPoolMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockPoolMockRecorder) CopyFrom ¶
func (mr *MockPoolMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CopyFrom indicates an expected call of CopyFrom.
func (*MockPoolMockRecorder) Exec ¶
func (mr *MockPoolMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockPoolMockRecorder) Ping ¶
func (mr *MockPoolMockRecorder) Ping(arg0 interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockPoolMockRecorder) Query ¶
func (mr *MockPoolMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockPoolMockRecorder) QueryRow ¶
func (mr *MockPoolMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockPoolMockRecorder) SendBatch ¶
func (mr *MockPoolMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call
SendBatch indicates an expected call of SendBatch.
func (*MockPoolMockRecorder) WithTransaction ¶
func (mr *MockPoolMockRecorder) WithTransaction(arg0, arg1 interface{}) *gomock.Call
WithTransaction indicates an expected call of WithTransaction.