Versions in this module Expand all Collapse all v3 v3.0.0 Feb 27, 2023 Changes in this version + type DB struct + func (_m *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) (dbtools.Tx, error) + type PGXTx struct + func NewPGXTx(t mockConstructorTestingTNewPGXTx) *PGXTx + func (_m *PGXTx) Begin(ctx context.Context) (pgx.Tx, error) + func (_m *PGXTx) Commit(ctx context.Context) error + func (_m *PGXTx) Conn() *pgx.Conn + func (_m *PGXTx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error) + func (_m *PGXTx) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error) + func (_m *PGXTx) LargeObjects() pgx.LargeObjects + func (_m *PGXTx) Prepare(ctx context.Context, name string, sql string) (*pgconn.StatementDescription, error) + func (_m *PGXTx) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error) + func (_m *PGXTx) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row + func (_m *PGXTx) Rollback(ctx context.Context) error + func (_m *PGXTx) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults + type Pool struct + func NewPool(t mockConstructorTestingTNewPool) *Pool + func (_m *Pool) Begin(ctx context.Context) (pgx.Tx, error) + type Tx struct + func NewTx(t mockConstructorTestingTNewTx) *Tx + func (_m *Tx) Commit() error + func (_m *Tx) Exec(query string, args ...interface{}) (sql.Result, error) + func (_m *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (_m *Tx) Prepare(query string) (*sql.Stmt, error) + func (_m *Tx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) + func (_m *Tx) Query(query string, args ...interface{}) (*sql.Rows, error) + func (_m *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + func (_m *Tx) QueryRow(query string, args ...interface{}) *sql.Row + func (_m *Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row + func (_m *Tx) Rollback() error + func (_m *Tx) Stmt(stmt *sql.Stmt) *sql.Stmt + func (_m *Tx) StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt Other modules containing this package github.com/arsham/dbtools github.com/arsham/dbtools/v2