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
- Host: GitHub
- URL: https://github.com/danielbprice/briefpg
- Owner: danielbprice
- License: mit
- Created: 2020-07-10T22:17:30.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-12-29T19:42:54.000Z (over 4 years ago)
- Last Synced: 2025-10-10T20:53:52.130Z (9 months ago)
- Topics: database, golang, postgres, postgresql, testing
- Language: Go
- Homepage:
- Size: 36.1 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
# briefpg
[](https://github.com/danielbprice/briefpg/blob/master/LICENSE)
[](https://pkg.go.dev/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).