gradle-docker-compose-plugin VS pglite

Compare gradle-docker-compose-plugin vs pglite and see what are their differences.

gradle-docker-compose-plugin

Simplifies usage of Docker Compose for integration testing in Gradle environment. (by avast)

pglite

Lightweight Postgres packaged as WASM into a TypeScript library for the browser, Node.js, Bun and Deno (by electric-sql)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
gradle-docker-compose-plugin pglite
1 6
402 4,471
0.0% 12.4%
6.3 8.4
7 days ago 24 days ago
Groovy TypeScript
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

gradle-docker-compose-plugin

Posts with mentions or reviews of gradle-docker-compose-plugin. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-27.
  • Testcontainers
    16 projects | news.ycombinator.com | 27 Feb 2024
    Something that improved developer experience by far and also sped up our builds is starting the container dependencies via docker-compose and connect to it for integration testing. This allows reuse of containers, you can connect to it after/during an integration test to debug without having to keep searching for ports constantly.

    With TestContainers - I've perceived that running integration tests / a single test repeatedly locally is extremely slow as the containers are shut down when the java process is killed. This approach allows for this while also allowing to keep it consistent - example, just mount the migrations folder in the start volume of your DB container and you have a like-for-like schema of your prod DB ready for integration tests.

    I've found the https://github.com/avast/gradle-docker-compose-plugin/ very useful for this.

pglite

Posts with mentions or reviews of pglite. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-07.
  • Show HN: I open-sourced the in-memory PostgreSQL I built at work for E2E tests
    9 projects | news.ycombinator.com | 7 Apr 2024
    Hey HN! For a few months, I've been building pgmock at work for our E2E and unit test suite. It emulates Postgres in WebAssembly and has full feature parity with production databases.

    The cool thing about it is that you don't need any external processes or proxies. If your platform can run WASM (Node.js, browser, etc.), it can probably run pgmock. Creating a new database with mock data is as simple as creating a JavaScript object.

    It's a bit different from the amazing pglite [1] (which inspired me to open-source pgmock in the first place). While pgmock runs an x86 emulator, pglite compiles a Postgres fork to native WASM directly and is hence much faster and more lightweight. However, it only supports single-user mode and a select few extensions, so you can't connect to it with normal Postgres clients (which is quite crucial for E2E testing).

    Theoretically, it could be modified to run any Docker image on WebAssembly platforms. Anything specific you'd like to see?

    Happy hacking!

    [1] https://github.com/electric-sql/pglite

  • Pgmock: In-memory Postgres for unit/E2E tests
    2 projects | news.ycombinator.com | 4 Apr 2024
  • Soul: A SQLite REST and Realtime Server
    8 projects | news.ycombinator.com | 19 Mar 2024
    I've found postgres via docker to be fine for dev and testing, but there are various epheremal postgres scripts, plus this could be promising for node stuff https://github.com/electric-sql/pglite if it works out. I'd imagine if this does work out we'll see the same kind of builds for other runtimes as well (like python)
  • The Cell Programming Language
    3 projects | news.ycombinator.com | 7 Mar 2024
    > Use SQLite for everything, or Postgres if you outgrow it.

    Or both! ElectricSQL syncs front end SQLlite back to server side postgres. And they just rebuilt postgres on pure WASM (https://github.com/electric-sql/pglite). All ties together with a CRDT.

    I'm not affiliated, but just think it's just cool to imagine calls to front end sqllite as the be-all-end-all.

  • Testcontainers
    16 projects | news.ycombinator.com | 27 Feb 2024
  • PGlite – Postgres in WASM
    1 project | news.ycombinator.com | 22 Feb 2024

What are some alternatives?

When comparing gradle-docker-compose-plugin and pglite you can also consider the following projects:

services-flake - NixOS-like services for Nix flakes

dockertest - Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.

otj-pg-embedded - Java embedded PostgreSQL component for testing

embedded-postgres-binaries - Lightweight bundles of PostgreSQL binaries with reduced size intended for testing purposes.

nammayatri - A Direct-to-Driver open mobility platform powering the next-generation of mobility applications in India.

latte - Latte is a modern data engineering toolkit.

testcontainers-node - Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

dagger - Application Delivery as Code that Runs Anywhere