SQLite3 VS pglite

Compare SQLite3 vs pglite and see what are their differences.

SQLite3

Ruby bindings for the SQLite3 embedded database (by sparklemotion)

pglite

Embeddable Postgres with real-time, reactive bindings. (by electric-sql)
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
SQLite3 pglite
6 45
826 14,161
0.6% 7.3%
8.2 9.1
8 days ago 6 days ago
Ruby TypeScript
BSD 3-clause "New" or "Revised" 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.

SQLite3

Posts with mentions or reviews of SQLite3. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-09-11.
  • SQLite on Rails: The how and why of optimal performance
    6 projects | news.ycombinator.com | 11 Sep 2024
    You can read more discussion here: https://github.com/sparklemotion/sqlite3-ruby/pull/528 and here: https://github.com/digital-fabric/extralite/pull/46 to see how it was validated that simply releases the GVL for every `step` in the SQLite VM majorly hurts single-threaded performance. Finding a middle ground for both single threaded and multi-threaded performance is tricky. In Rails, we know it is multi-threaded because of the connection pool. But the lower level gem is used in many other libraries and tools where it is used in a single threaded environment
  • Working with SQLite in Ruby
    1 project | /r/rails | 11 Dec 2023
  • Extralite 2.0 has been released!
    3 projects | /r/ruby | 9 Jul 2023
    Extralite is a gem for working with SQLite databases. It is blazing fast (up to 11x the performance of the sqlite3 gem), and provides a rich API for accessing database data in a variety of formats.
  • Understanding Clean Architecture with small Ruby libraries
    6 projects | dev.to | 1 Nov 2022
    DB: sparklemotion/sqlite3-ruby: Ruby bindings for the SQLite3 embedded database
  • Sharing my exp so far with using SQLite in Production
    2 projects | /r/rails | 14 Oct 2022
    # This configure_connection is run when each new connection is created. # see https://github.com/rails/rails/blob/main/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb#L1112 def configure_connection super puts "Configuring DB connection with app-specific PRAGMA statements" conn = self.raw_connection # see https://github.com/sparklemotion/sqlite3-ruby/blob/master/lib/sqlite3/pragmas.rb conn.synchronous = 1 # normal # this is a permanent pragma but in case DB is brand new, no harm is invoking it conn.journal_mode = 'wal' # this is unnecssary b/c rails' sqlite3adapter turns it on by default conn.foreign_keys = true # this is not yet supported with convenience method #conn.analysis_limit = 400 # PRAGMA temp_store = 'memory' # hold temporary indices and tables in memory # conn.temp_store = 2 end
  • Resources for learning environment related things?/Help getting sqlite3 working with ruby on WSL ubuntu
    1 project | /r/learnprogramming | 1 Jul 2022
    That looks like you're missing the ruby module, not the OS package. If you're using bundler to manage your dependencies, add gem 'sqlite3', '~> 1.3', '>= 1.3.11' to your Gemfile. For reference, I got that line from this page: https://rubygems.org/gems/sqlite3/versions/1.3.11

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 2025-12-08.
  • All Data and AI Weekly #219: 08 Dec 2025
    12 projects | dev.to | 8 Dec 2025
    PGLite (Postgres in WASM)
  • PGlite – Embeddable Postgres
    11 projects | news.ycombinator.com | 4 Dec 2025
  • Epsilon: A WASM virtual machine written in Go
    10 projects | news.ycombinator.com | 30 Nov 2025
    I knew I remember your name working with something of sqlite and golang

    https://github.com/ncruces/go-sqlite3

    Man I really enjoy golang and cross portability and wazero + sqlite could still be cross portable which is super fascinating

    What are your thoughts on https://github.com/electric-sql/pglite (postgres in wasm)?

    Also what were the goal behind a pure golang solution via wazero + wasm sqlite as you had made?

    Was it cross platform support, if so, what are your thoughts on zig, I have seen a project use zig + golang to create cross platform C language support but I think that adding zig into the picture complicates the build process so there are tradeoffs and I am interested to hear your opinions about it!

  • RegreSQL: Regression Testing for PostgreSQL Queries
    9 projects | news.ycombinator.com | 14 Nov 2025
    It's pretty terrible how poorly developers test their database queries. This looks like a great step in the right direction. I think how the ORM story in RegreSQL develops is crucial. The SQLAlchemy integration looks interesting, but at the same time super specific. There are a million ways to generate SQL statements and ORMs are just one of them. A question that comes to mind is how will you handle interactive transactions? I'd say most complexity in queries comes from the back-and-forth between database and server. Is that out of scope?

    Would also be fun if you could support PGLite [0], that's what I've been using to write "unit" tests connected to a "real" database.

    [0] https://pglite.dev/

  • Hosting SQLite Databases on GitHub Pages
    6 projects | news.ycombinator.com | 29 Oct 2025
  • What if we treated Postgres like SQLite?
    8 projects | news.ycombinator.com | 22 Sep 2025
    You got my hopes up, but it's WASM for now, not something I could add into a golang [1] or python app and have running like sqlite. OK, still hoping...!

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

  • SQLite async connection pool for high-performance
    3 projects | news.ycombinator.com | 11 Jul 2025
  • LiveStore
    4 projects | news.ycombinator.com | 27 May 2025
    On your last point: https://pglite.dev

    On the main point around materialisation cost, I know more work is planned on compaction specifically but generally LiveStore is a framework that’s been highly crafted to address and optimise for all aspects of performance.

  • 🚀 Introducing PSQLab – Your In-Browser PostgreSQL Playground
    1 project | dev.to | 6 Apr 2025
    Imagine running a full PostgreSQL database directly in your browser without any server setup—pure, instant, and local. Meet PSQLab, an innovative UI built on pglite, that lets you experiment with PostgreSQL natively on the frontend. Whether you’re a college student learning SQL, a developer prototyping new ideas, or a curious mind exploring in-browser databases, PSQLab is designed just for you. 🧑‍💻📘
  • Postgres Language Server: Initial Release
    8 projects | dev.to | 1 Apr 2025
    If you want, you can already help us by installing the Language Server and reporting any issues we might have overlooked, or you could suggest features that we should implement later on (we're currently planning PL/pgSQL support, a Wasm build for pglite, and parsing SQL function bodies).

What are some alternatives?

When comparing SQLite3 and pglite you can also consider the following projects:

TinyTDS - TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.

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.

SQL Server - SQL Server Adapter For Rails

wa-sqlite - WebAssembly SQLite with support for browser storage extensions

mysql2 - A modern, simple and very fast Mysql library for Ruby - binding to libmysql

chasm - A WebAssembly runtime built on Kotlin Multiplatform

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured