Categorygithub.com/Silicon-Ally/testpgx
modulepackage
0.0.5
Repository: https://github.com/silicon-ally/testpgx.git
Documentation: pkg.go.dev

# README

This package was developed by Silicon Ally while working on a project for Adventure Scientists. Many thanks to Adventure Scientists for supporting our open source mission!

NOTE: this package is pre-v1.0.0 release, meaning that the API is liable to change as we add + refactor functionality. Since it's only for use in testing, that's likely fine for small projects, but contact us before integrating this into any larger/more serious projects.

testpgx

GoDoc CI Workflow

testpgx is a testing library for running tests against a real Postgres database. It provides a test with a *pgx.Conn connection to a live database running in a Docker container, though this can be converted into a more generic *sql.DB.

Usage

See the example/ directory for an example of how to integrate testpgx into a test suite.

Contributing

Contribution guidelines can be found on our website.

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
WithDockerBinaryPath sets the path to the local Docker binary.
No description provided by the author
WithMaxDBs controls the number of DBs, which corresponds to the number of parallel executions.
WithMigrator allows specifing a migration system to populate the database schema.
WithPostgresDockerImage csets the Docker image to use for running PostgreSQL.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
Option allows configuring the test environment created by testpgx.