mock_postgres

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_postgres is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockQueryer

type MockQueryer struct {
	// contains filtered or unexported fields
}

MockQueryer is a mock of Queryer interface.

func NewMockQueryer

func NewMockQueryer(ctrl *gomock.Controller) *MockQueryer

NewMockQueryer creates a new mock instance.

func (*MockQueryer) Begin

func (m *MockQueryer) Begin(ctx context.Context) (pgx.Tx, error)

Begin mocks base method.

func (*MockQueryer) EXPECT

func (m *MockQueryer) EXPECT() *MockQueryerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockQueryer) Exec

func (m *MockQueryer) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockQueryer) Query

func (m *MockQueryer) Query(ctx context.Context, query string, args ...any) (pgx.Rows, error)

Query mocks base method.

func (*MockQueryer) QueryRow

func (m *MockQueryer) QueryRow(ctx context.Context, query string, args ...any) pgx.Row

QueryRow mocks base method.

type MockQueryerMockRecorder

type MockQueryerMockRecorder struct {
	// contains filtered or unexported fields
}

MockQueryerMockRecorder is the mock recorder for MockQueryer.

func (*MockQueryerMockRecorder) Begin

func (mr *MockQueryerMockRecorder) Begin(ctx any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockQueryerMockRecorder) Exec

func (mr *MockQueryerMockRecorder) Exec(ctx, query any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockQueryerMockRecorder) Query

func (mr *MockQueryerMockRecorder) Query(ctx, query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockQueryerMockRecorder) QueryRow

func (mr *MockQueryerMockRecorder) QueryRow(ctx, query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL