Versions in this module Expand all Collapse all v0 v0.3.0 Apr 4, 2026 Changes in this version + type Rows struct + func NewRows(t testingT) *Rows + func (r *Rows) AddRow(values ...any) *Rows + func (r *Rows) Close() + func (r *Rows) CommandTag() pgconn.CommandTag + func (r *Rows) Conn() *pgx.Conn + func (r *Rows) Err() error + func (r *Rows) FieldDescriptions() []pgconn.FieldDescription + func (r *Rows) Next() bool + func (r *Rows) RawValues() [][]byte + func (r *Rows) Scan(dest ...any) error + func (r *Rows) Values() ([]any, error) + func (r *Rows) WithCommandTag(tag pgconn.CommandTag) *Rows + func (r *Rows) WithError(err error) *Rows + func (r *Rows) WithFieldDescriptions(fields []pgconn.FieldDescription) *Rows v0.2.0 Mar 28, 2026 Changes in this version + var Anything anythingMatcher + type Executor struct + func NewExecutor(t testingT) *Executor + func (m *Executor) EXPECT() *ExecutorExpecter + func (m *Executor) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error) + func (m *Executor) Query(ctx context.Context, sql string, arguments ...any) (pgx.Rows, error) + func (m *Executor) QueryRow(ctx context.Context, sql string, arguments ...any) pgx.Row + type ExecutorExecCall struct + func (c *ExecutorExecCall) Once() *ExecutorExecCall + func (c *ExecutorExecCall) Return(tag pgconn.CommandTag, err error) *ExecutorExecCall + func (c *ExecutorExecCall) Run(run func(context.Context, string, ...any)) *ExecutorExecCall + func (c *ExecutorExecCall) RunAndReturn(fn func(context.Context, string, ...any) (pgconn.CommandTag, error)) *ExecutorExecCall + type ExecutorExpecter struct + func (e *ExecutorExpecter) Exec(ctx, sql any, arguments ...any) *ExecutorExecCall + func (e *ExecutorExpecter) Query(ctx, sql any, arguments ...any) *ExecutorQueryCall + func (e *ExecutorExpecter) QueryRow(ctx, sql any, arguments ...any) *ExecutorQueryRowCall + type ExecutorProvider struct + func NewExecutorProvider(t testingT) *ExecutorProvider + func (m *ExecutorProvider) EXPECT() *ExecutorProviderExpecter + func (m *ExecutorProvider) GetExecutor(ctx context.Context) pgxtx.Executor + type ExecutorProviderExpecter struct + func (e *ExecutorProviderExpecter) GetExecutor(ctx any) *ExecutorProviderGetExecutorCall + type ExecutorProviderGetExecutorCall struct + func (c *ExecutorProviderGetExecutorCall) Once() *ExecutorProviderGetExecutorCall + func (c *ExecutorProviderGetExecutorCall) Return(exec pgxtx.Executor) *ExecutorProviderGetExecutorCall + func (c *ExecutorProviderGetExecutorCall) Run(run func(context.Context)) *ExecutorProviderGetExecutorCall + func (c *ExecutorProviderGetExecutorCall) RunAndReturn(fn func(context.Context) pgxtx.Executor) *ExecutorProviderGetExecutorCall + type ExecutorQueryCall struct + func (c *ExecutorQueryCall) Once() *ExecutorQueryCall + func (c *ExecutorQueryCall) Return(rows pgx.Rows, err error) *ExecutorQueryCall + func (c *ExecutorQueryCall) Run(run func(context.Context, string, ...any)) *ExecutorQueryCall + func (c *ExecutorQueryCall) RunAndReturn(fn func(context.Context, string, ...any) (pgx.Rows, error)) *ExecutorQueryCall + type ExecutorQueryRowCall struct + func (c *ExecutorQueryRowCall) Once() *ExecutorQueryRowCall + func (c *ExecutorQueryRowCall) Return(row pgx.Row) *ExecutorQueryRowCall + func (c *ExecutorQueryRowCall) Run(run func(context.Context, string, ...any)) *ExecutorQueryRowCall + func (c *ExecutorQueryRowCall) RunAndReturn(fn func(context.Context, string, ...any) pgx.Row) *ExecutorQueryRowCall + type Manager struct + func NewManager(t testingT) *Manager + func (m *Manager) EXPECT() *ManagerExpecter + func (m *Manager) ExecInTx(ctx context.Context, fn func(context.Context, pgxtx.Executor) error) error + func (m *Manager) GetExecutor(ctx context.Context) pgxtx.Executor + func (m *Manager) WithTx(ctx context.Context, fn pgxtx.TxFunc) error + type ManagerExecInTxCall struct + func (c *ManagerExecInTxCall) Once() *ManagerExecInTxCall + func (c *ManagerExecInTxCall) Return(err error) *ManagerExecInTxCall + func (c *ManagerExecInTxCall) Run(run func(context.Context, func(context.Context, pgxtx.Executor) error)) *ManagerExecInTxCall + func (c *ManagerExecInTxCall) RunAndReturn(fn func(context.Context, func(context.Context, pgxtx.Executor) error) error) *ManagerExecInTxCall + type ManagerExpecter struct + func (e *ManagerExpecter) ExecInTx(ctx, fn any) *ManagerExecInTxCall + func (e *ManagerExpecter) GetExecutor(ctx any) *ManagerGetExecutorCall + func (e *ManagerExpecter) WithTx(ctx, fn any) *ManagerWithTxCall + type ManagerGetExecutorCall struct + func (c *ManagerGetExecutorCall) Once() *ManagerGetExecutorCall + func (c *ManagerGetExecutorCall) Return(exec pgxtx.Executor) *ManagerGetExecutorCall + func (c *ManagerGetExecutorCall) Run(run func(context.Context)) *ManagerGetExecutorCall + func (c *ManagerGetExecutorCall) RunAndReturn(fn func(context.Context) pgxtx.Executor) *ManagerGetExecutorCall + type ManagerWithTxCall struct + func (c *ManagerWithTxCall) Once() *ManagerWithTxCall + func (c *ManagerWithTxCall) Return(err error) *ManagerWithTxCall + func (c *ManagerWithTxCall) Run(run func(context.Context, pgxtx.TxFunc)) *ManagerWithTxCall + func (c *ManagerWithTxCall) RunAndReturn(fn func(context.Context, pgxtx.TxFunc) error) *ManagerWithTxCall + type TxRunner struct + func NewTxRunner(t testingT) *TxRunner + func (m *TxRunner) EXPECT() *TxRunnerExpecter + func (m *TxRunner) ExecInTx(ctx context.Context, fn func(context.Context, pgxtx.Executor) error) error + func (m *TxRunner) WithTx(ctx context.Context, fn pgxtx.TxFunc) error + type TxRunnerExecInTxCall struct + func (c *TxRunnerExecInTxCall) Once() *TxRunnerExecInTxCall + func (c *TxRunnerExecInTxCall) Return(err error) *TxRunnerExecInTxCall + func (c *TxRunnerExecInTxCall) Run(run func(context.Context, func(context.Context, pgxtx.Executor) error)) *TxRunnerExecInTxCall + func (c *TxRunnerExecInTxCall) RunAndReturn(fn func(context.Context, func(context.Context, pgxtx.Executor) error) error) *TxRunnerExecInTxCall + type TxRunnerExpecter struct + func (e *TxRunnerExpecter) ExecInTx(ctx, fn any) *TxRunnerExecInTxCall + func (e *TxRunnerExpecter) WithTx(ctx, fn any) *TxRunnerWithTxCall + type TxRunnerWithTxCall struct + func (c *TxRunnerWithTxCall) Once() *TxRunnerWithTxCall + func (c *TxRunnerWithTxCall) Return(err error) *TxRunnerWithTxCall + func (c *TxRunnerWithTxCall) Run(run func(context.Context, pgxtx.TxFunc)) *TxRunnerWithTxCall + func (c *TxRunnerWithTxCall) RunAndReturn(fn func(context.Context, pgxtx.TxFunc) error) *TxRunnerWithTxCall