Changelog - 2026-08-02
SQLite and PGlite - Two Embedded Relational Engines
New Feature EnhancementIn one line. IGNIS gains a SQLite connector at @venizia/ignis/sqlite (driven by libsql) and a PGliteDriver that runs real Postgres in your process as WebAssembly. Nothing breaks, and existing Postgres code is untouched.
What changed
- SQLite connector at
@venizia/ignis/sqlite, with the libsql driver at@venizia/ignis/sqlite/libsql. It has a datasource, an entity base, five repository classes, five column enrichers, and a SQLite dialect for filters and JSON updates. PGliteDriverat@venizia/ignis/postgres/pglite. It reuses the whole Postgres connector - same dialect, enrichers andpgTablemodels.- Unsupported SQLite features throw. Row locking,
regexp, array operators and isolation levels raise501 Not Implementedwithnormalized.code: 'core.not_supported'. - Optional peer dependencies.
@electric-sql/pgliteand@libsql/clientare optional, and neither reaches the@venizia/ignisroot barrel, so apps that use neither pull in neither.
Who is affected
- Every existing Postgres application. No action needed. No symbol was removed, renamed or re-signatured.
- Anyone writing tests against a database.
PGliteDrivergives real Postgres semantics with no Docker. See PGlite. - Anyone shipping a CLI, desktop app or edge worker. Both engines run embedded. See SQLite.
- Anyone considering SQLite in production. Read the capability table on the SQLite page first.
- Anyone using the
Authentication,AuthorizationorStaticAssetComponentcomponents. They stay Postgres-only in this release, because their models arepgTable. - Upgrading across the relational lift too. The renames are in the Relational Connector Lift migration guide.
Details
Where SQLite and Postgres answer differently:
| Call | PostgreSQL | SQLite |
|---|---|---|
{ like: 'alpha' } | matches alpha | matches Alpha and alpha |
{ nlike: 'alpha' } | keeps Alpha | drops Alpha |
order: ['score ASC'] with a NULL | NULL last | NULL first |
SQLite
:memory:,file:./data.db, a Tursolibsql://URL and an embedded replica all run on the one driver.BaseSqliteDataSourceinheritsgetConnectionString().- SQLite has no isolation levels. Use the locking mode
SqliteBeginModes.DEFERRED | IMMEDIATE | EXCLUSIVE, which defaults toIMMEDIATE.BEGIN DEFERREDfails withSQLITE_BUSYif another writer got there first. PassingisolationLevelthrows. .returning()works on insert, update and delete.
PGlite
- PGlite reports
PostgreSQL 18.3, so#>>JSON paths,ILIKE, regex operators, arrays andSELECT ... FOR UPDATEwork unchanged. It has one session, so transactions serialise. - The wait for the session is bounded by
acquireTimeoutMs, defaultPGliteDriver.DEFAULT_ACQUIRE_TIMEOUT_MS(30000). A leaked transaction then surfaces as a named error on the nextacquire(). The timeout bounds the wait, never the transaction. - A write through
createConnector()withoutoptions.transactionruns inside whatever transaction is open, and that transaction'sROLLBACKdiscards it. Under concurrency, pass the transaction. - Postgres writes with
shouldReturn: falsenow work on PGlite, which reportsaffectedRowsonly.
See also: SQLite, PGlite, Relational Connector Lift and Connectors.