3 ms·
For PostgreSQL and Go, here's a package to spin up a temp in-mem PostgreSQL: https://github.com/rubenv/pgtest/ https://github.com/rubenv/pgtest/
by rubenv 6y ago
For PostgreSQL and Go, here's a package to spin up a temp in-mem PostgreSQL: https://github.com/rubenv/pgtest/ https://github.com/rubenv/pgtest/
- aidos 6y agoFrom memory, in Postgres, you could also have a copy of your base database and then copy it in for each test, which is seem to recall being fairly fast. It includes the data too. Create database test_db template initial_db;