An open API service indexing awesome lists of open source software.

https://github.com/danielbprice/briefpg

Temporary PostgreSQL instances for Go unit tests
https://github.com/danielbprice/briefpg

database golang postgres postgresql testing

Last synced: 5 months ago
JSON representation

Temporary PostgreSQL instances for Go unit tests

Awesome Lists containing this project

README

          

# briefpg

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/danielbprice/briefpg/blob/master/LICENSE)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/danielbprice/briefpg)](https://pkg.go.dev/github.com/danielbprice/briefpg)
[![GoReportCard](https://goreportcard.com/badge/github.com/danielbprice/briefpg)](https://goreportcard.com/report/github.com/danielbprice/briefpg)

Temporary PostgreSQL Instances for Unit Tests

briefpg makes it easy to create Go tests backed by a live, temporary Postgres database. While mocking a database is helpful in some cases, it's just as often helpful to have a real live database to work against.

This project is based on the concepts from the very nice package [ephemeralpg](https://github.com/eradman/ephemeralpg/) by Eric Radman. Perhaps we should have called it `gophemeralpg`?

The author also wishes to express gratitude to my employer Brightgate, which allowed its release to Open Source. And to [Danek Duvall](https://github.com/dhduvall) who helped to review, refine, and fix bugs (unfortunately some of the commit history is lost in the transition to Open Source).