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

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.

Awesome Lists containing this project

README

          

# Schemata

[![GoDoc](https://godoc.org/github.com/lpar/schemata?status.svg)](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.