39 ms·
I assume the idea here is similar to other embedded Postgres libraries - you create a template database that is very fast to copy on startup (or you manually co
by thom 3y ago
I assume the idea here is similar to other embedded Postgres libraries - you create a template database that is very fast to copy on startup (or you manually copy the correct files which is even faster) so you don’t need to run migrations. In our tests on one of the JVM equivalents the overhead is about 20ms per test which is entirely tolerable. Making this language agnostic is really interesting though.
- peter_l_downs 3y agoYeah, the parent project mentions that you can use pg_dump and pg_restore, but the examples don't seem to show that (or I'm misreading them.) My project uses template databases to do exactly what you said. Definitely fast and definitely nice.