Versions in this module Expand all Collapse all v1 v1.0.0 Mar 14, 2024 Changes in this version + func AssertFailure(t *testing.T, pool *pgxpool.Pool, name string) + func AssertSuccess(t *testing.T, pool *pgxpool.Pool, name string) + func SetupDB(t *testing.T) (*pgxpool.Pool, *sql.DB) + type DB struct + func NewDB(t *testing.T, opts ...Option) *DB + type Option func(db *DB) + func WithSuccessfulCommit() Option + func WithSuccessfulRollback() Option + func WithSuccessfulTransactionStart() Option + func WithUnsuccessfulRollback(with error) Option + func WithUnsuccessfulTransactionStart(with error) Option Other modules containing this package github.com/aneshas/tx/v2