Documentation ¶
Overview ¶
Package mock_postgres is a generated GoMock package.
Index ¶
- type MockPgxPool
- func (m *MockPgxPool) Begin(ctx context.Context) (v4.Tx, error)
- func (m *MockPgxPool) EXPECT() *MockPgxPoolMockRecorder
- func (m *MockPgxPool) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
- func (m *MockPgxPool) Query(ctx context.Context, sql string, args ...interface{}) (v4.Rows, error)
- func (m *MockPgxPool) QueryRow(ctx context.Context, sql string, args ...interface{}) v4.Row
- type MockPgxPoolMockRecorder
- func (mr *MockPgxPoolMockRecorder) Begin(ctx interface{}) *gomock.Call
- func (mr *MockPgxPoolMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call
- func (mr *MockPgxPoolMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockPgxPoolMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
- type MockPgxTx
- func (m *MockPgxTx) Begin(ctx context.Context) (v4.Tx, error)
- func (m *MockPgxTx) Commit(ctx context.Context) error
- func (m *MockPgxTx) EXPECT() *MockPgxTxMockRecorder
- func (m *MockPgxTx) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
- func (m *MockPgxTx) Query(ctx context.Context, sql string, args ...interface{}) (v4.Rows, error)
- func (m *MockPgxTx) QueryRow(ctx context.Context, sql string, args ...interface{}) v4.Row
- func (m *MockPgxTx) Rollback(ctx context.Context) error
- type MockPgxTxMockRecorder
- func (mr *MockPgxTxMockRecorder) Begin(ctx interface{}) *gomock.Call
- func (mr *MockPgxTxMockRecorder) Commit(ctx interface{}) *gomock.Call
- func (mr *MockPgxTxMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call
- func (mr *MockPgxTxMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockPgxTxMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockPgxTxMockRecorder) Rollback(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPgxPool ¶
type MockPgxPool struct {
// contains filtered or unexported fields
}
MockPgxPool is a mock of PgxPool interface.
func NewMockPgxPool ¶
func NewMockPgxPool(ctrl *gomock.Controller) *MockPgxPool
NewMockPgxPool creates a new mock instance.
func (*MockPgxPool) EXPECT ¶
func (m *MockPgxPool) EXPECT() *MockPgxPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPgxPool) Exec ¶
func (m *MockPgxPool) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
Exec mocks base method.
type MockPgxPoolMockRecorder ¶
type MockPgxPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockPgxPoolMockRecorder is the mock recorder for MockPgxPool.
func (*MockPgxPoolMockRecorder) Begin ¶
func (mr *MockPgxPoolMockRecorder) Begin(ctx interface{}) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockPgxPoolMockRecorder) Exec ¶
func (mr *MockPgxPoolMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockPgxPoolMockRecorder) Query ¶
func (mr *MockPgxPoolMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockPgxPoolMockRecorder) QueryRow ¶
func (mr *MockPgxPoolMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
type MockPgxTx ¶
type MockPgxTx struct {
// contains filtered or unexported fields
}
MockPgxTx is a mock of PgxTx interface.
func NewMockPgxTx ¶
func NewMockPgxTx(ctrl *gomock.Controller) *MockPgxTx
NewMockPgxTx creates a new mock instance.
func (*MockPgxTx) EXPECT ¶
func (m *MockPgxTx) EXPECT() *MockPgxTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPgxTx) Exec ¶
func (m *MockPgxTx) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
Exec mocks base method.
type MockPgxTxMockRecorder ¶
type MockPgxTxMockRecorder struct {
// contains filtered or unexported fields
}
MockPgxTxMockRecorder is the mock recorder for MockPgxTx.
func (*MockPgxTxMockRecorder) Begin ¶
func (mr *MockPgxTxMockRecorder) Begin(ctx interface{}) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockPgxTxMockRecorder) Commit ¶
func (mr *MockPgxTxMockRecorder) Commit(ctx interface{}) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockPgxTxMockRecorder) Exec ¶
func (mr *MockPgxTxMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockPgxTxMockRecorder) Query ¶
func (mr *MockPgxTxMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockPgxTxMockRecorder) QueryRow ¶
func (mr *MockPgxTxMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockPgxTxMockRecorder) Rollback ¶
func (mr *MockPgxTxMockRecorder) Rollback(ctx interface{}) *gomock.Call
Rollback indicates an expected call of Rollback.