pglite-oxide
betaembedded Postgres for Rust and Tauri apps
Details
pglite-oxide embeds the Electric SQL PGlite WASI PostgreSQL runtime in Rust, providing Rust applications with a local Postgres-compatible database without requiring a native Postgres sidecar. It enables local Postgres semantics in Rust or Tauri apps, fast Postgres-backed tests without Docker, and provides PostgreSQL connection URIs for libraries like SQLx.
Best fit users
- •Rust developers
- •Tauri application developers
- •test automation engineers
Why this one made the cut
This tool removes the need for external Postgres dependencies in Rust applications, enabling faster and more straightforward integration testing. By embedding directly in the application, it simplifies database handling while maintaining Postgres compatibility, which is critical for developers needing local, lightweight database solutions without the overhead of full database installations.
What makes it different
Unlike traditional Postgres setups, pglite-oxide uses a Wasmtime/WASI runtime for embedding PGlite as opposed to a native libpglite binding approach, which creates fresh databases from a PGDATA template and reuses compiled module cache.