https://github.com/lpar/schemata
Helper methods for creating test schemas in PostgreSQL databases with copies of tables from the live schema for unit testing.
https://github.com/lpar/schemata
golang postgresql schemas testing
Last synced: 6 months ago
JSON representation
Helper methods for creating test schemas in PostgreSQL databases with copies of tables from the live schema for unit testing.
- Host: GitHub
- URL: https://github.com/lpar/schemata
- Owner: lpar
- License: bsd-3-clause
- Created: 2019-10-07T18:21:40.000Z (over 6 years ago)
- Default Branch: trunk
- Last Pushed: 2024-03-12T15:36:31.000Z (over 2 years ago)
- Last Synced: 2024-06-20T15:02:18.347Z (about 2 years ago)
- Topics: golang, postgresql, schemas, testing
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Schemata
[](https://godoc.org/github.com/lpar/schemata)
Helper methods for creating test schemas in PostgreSQL databases, with copies
of tables from the live schema. Thread-safe, so you can call them from unit
tests. Uses [pgx](https://github.com/jackc/pgx) because pq is sadly in
maintenance-only mode.
Needs unit tests (hint hint) but is very short, under a hundred lines.