Y
Hacker News
new
|
ask
|
show
|
jobs
by
rubenv
1985 days ago
For PostgreSQL and Go, here's a package to spin up a temp in-mem PostgreSQL:
https://github.com/rubenv/pgtest/
1 comments
aidos
1985 days ago
From 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;
link