Repository navigation
First tagged release. litewire lets unmodified database clients speak to SQLite: point pdo_mysql/mysqli (or Postgres/TDS/Hrana clients) at a litewire listener and it translates the wire protocol onto an embedded engine — no app changes, no external database server.
What's in v0.1.0
Wire frontends (feature-gated): MySQL, PostgreSQL, TDS (SQL Server), Hrana.
Engine backends behind the Backend/BackendConn trait seam:
backend-rusqlite(default) — the genuine SQLite C engine, bundledturso(experimental, off by default) — the Turso Database engine (Rust rewrite of SQLite, pinned=0.7.0), async-native. Measured at the Backend seam vs rusqlite on the same machine: ~28× point-SELECT p50, ~4× concurrent-writer throughput (MVCC vs WAL+busy_timeout). Beta upstream — not for production data; VACUUM/multiprocess/ATTACH unsupported.
Turso CDC (new in #10): CdcTailer yields per-transaction change batches from the engine's turso_cdc stream (COMMIT-bounded, txn-ids, DDL captured — verified by test); apply_batch applies them idempotently on a replica connection. The building blocks for sidecar-free SQLite replication.
Consumers
Built for ePHPm (embedded PHP application server), usable standalone as a library or via the cli feature.