5 ms·
It's pretty easy to run embedded postgres on the JVM: https://github.com/opentable/otj-pg-embedded https://github.com/opentable/otj-pg-embedded The defaults cr
by john-shaffer 5y ago
It's pretty easy to run embedded postgres on the JVM: https://github.com/opentable/otj-pg-embedded https://github.com/opentable/otj-pg-embedded
The defaults create a temporary DB which is useful for dev & tests, but a pair of calls to .setCleanDataDirectory(false) and .setDataDirectory("...") will change that.
If you don't like the default postgres version, you may select one from https://search.maven.org/search?q=io.zonky.test.postgres https://search.maven.org/search?q=io.zonky.test.postgres or include your own postgres binary.