{"repo":"opentable/otj-pg-embedded","free":true,"listed":false,"github":"https://github.com/opentable/otj-pg-embedded","clone":"git clone https://github.com/opentable/otj-pg-embedded.git","description":"Java embedded PostgreSQL component for testing","language":"Java","stars":716,"topics":["platform-java","postgres","database","unit-testing","java","docker","testcontainers"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"OpenTable Embedded PostgreSQL Component ======================================= Note: This library requires Java 11+. However, Flyway 10 requires Java 17 . The last pure Java 11 release was 1.0.3 Allows embedding PostgreSQL into Java application code, using Docker containers. Excellent for allowing you to unit test with a \"real\" Postgres without requiring end users to install and set up a database cluster. Recent Changes (and the reasons behind them) The release of 1.0 brings major changes to the innards of this library. Previous pre 1.x versions used an embedded tarball. This was extremely fast (a major plus), but we switched to a docker based version for these reasons: Advantages: multi architecture support. This has become a huge issue for us with the introduction of the Mac M1 (and Windows ARM, Linux ARM)/ The same container works the same way on every OS - Mac, Windows, Linux. And we can use the official postgresql docker image by default. You need a tarball for every linux distribution as PG 10+ no longer ship a \"universal binary\" for linux. This means a lot of support and maintenance work, and we frankly didn't have time for it. Easy to switch docker image tag to upgrade versions - no need for a whole new pg-embedded version. More maintainable and secure (you can pull docker images you trust, instead of trusting our tarballs running in your security context) Trivial to do a build oneself based on the official Postgres image adding extensions, setup scripts etc. - see h","default_branch":null,"files":null,"tree":[],"storefront":"/r/opentable","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/opentable/otj-pg-embedded/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}