/schemata

Helper methods for creating test schemas in PostgreSQL databases with copies of tables from the live schema for unit testing.

Primary LanguageGoBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Schemata

GoDoc

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 because pq is sadly in maintenance-only mode.

Needs unit tests (hint hint) but is very short, under a hundred lines.