Versions in this module Expand all Collapse all v0 v0.0.1 Jun 13, 2024 Changes in this version + func Connect(ctx context.Context, t *testing.T, connectionString string) *sql.DB + func Migrate(url string, dir fs.FS) error + type PostgresContainer struct + ConnectionString string + func SetupPostgres(t *testing.T, dbName string, setup func(connectionString string) error) *PostgresContainer + type Query struct + Args []interface{} + Query string + type Recorder struct + ExecQueries []Query + Queries []Query + RowQueries []Query + func NewRecorder(dbConn database.Conn) *Recorder + func (d *Recorder) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (d *Recorder) Query(ctx context.Context, query string, args ...interface{}) (*database.Rows, error) + func (d *Recorder) QueryRow(ctx context.Context, query string, args ...interface{}) *database.Row