psql-docker-tests-example

module
v0.0.0-...-1a85a4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: MIT

README

adrianbrad psqldocker

📊 psql-docker-tests-example

GitHub go.mod Go version of a Go module GoDoc reference example

CodeFactor Go Report Card lint-test codecov

Parallel black box PostgreSQL unit tests run against a real database.

Consider reading the Medium Story first.

This package provides examples on how to run PostgreSQL units tests against a real database with every tests running in a separate SQL transaction. You can find the tests in this package.

The PostgreSQL database is started using the https://github.com/adrianbrad/psqldocker package.

The sql connections are opened in an isolated SQL transaction using the https://github.com/adrianbrad/psqltest package.

Directories

Path Synopsis
internal
psql
Package psql implements a User Repository backed by a PostgreSQL database.
Package psql implements a User Repository backed by a PostgreSQL database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL