mocks

package
v0.0.0-...-deaf358 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgxRowMock

type PgxRowMock struct{}

func (PgxRowMock) Scan

func (p PgxRowMock) Scan(dest ...any) error

type PgxRowsMock

type PgxRowsMock struct{}

func (PgxRowsMock) Close

func (p PgxRowsMock) Close()

func (PgxRowsMock) CommandTag

func (p PgxRowsMock) CommandTag() pgconn.CommandTag

func (PgxRowsMock) Conn

func (p PgxRowsMock) Conn() *pgx.Conn

func (PgxRowsMock) Err

func (p PgxRowsMock) Err() error

func (PgxRowsMock) FieldDescriptions

func (p PgxRowsMock) FieldDescriptions() []pgconn.FieldDescription

func (PgxRowsMock) Next

func (p PgxRowsMock) Next() bool

func (PgxRowsMock) RawValues

func (p PgxRowsMock) RawValues() [][]byte

func (PgxRowsMock) Scan

func (p PgxRowsMock) Scan(dest ...any) error

func (PgxRowsMock) Values

func (p PgxRowsMock) Values() ([]any, error)

type QueryMock

type QueryMock struct{}

func (*QueryMock) Exec

func (*QueryMock) Exec(
	_ context.Context,
	s string,
	i ...any,
) (pgconn.CommandTag, error)

func (*QueryMock) Query

func (*QueryMock) Query(_ context.Context, s string, i ...any) (pgx.Rows, error)

func (*QueryMock) QueryRow

func (*QueryMock) QueryRow(_ context.Context, s string, i ...any) pgx.Row

Jump to

Keyboard shortcuts

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