---
title: "Introducing Change Data Capture for SQLite in Turso"
description: "Turso's SQLite rewrite gains an unstable, built-in Change Data Capture feature enabled per connection via PRAGMA unstable_capture_data_changes_conn."
url: "https://swe.quest/articles/introducing-change-data-capture-for-sqlite-in-turso-c6756296fac94071"
canonical: "https://turso.tech/blog/introducing-change-data-capture-in-turso-sqlite-rewrite"
source: "Turso"
published: "2025-07-16"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["sqlite","event-driven","databases"]
---

# Introducing Change Data Capture for SQLite in Turso

A post on [Turso](https://swe.quest/sources/turso.md), published 2025-07-16, 5 min read, Announcement. Original: [https://turso.tech/blog/introducing-change-data-capture-in-turso-sqlite-rewrite](https://turso.tech/blog/introducing-change-data-capture-in-turso-sqlite-rewrite)

## Summary

Turso's SQLite rewrite gains an unstable, built-in Change Data Capture feature enabled per connection via PRAGMA unstable\_capture\_data\_changes\_conn. The pragma logs every insert, update and delete into a regular turso\_cdc table with change type, rowid and binary before/after row images, and JSON helper functions decode those images. Four modes (id, before, after, full) trade detail against storage. Decoding uses the current schema, so dropped or added columns can corrupt historical records unless schema versions are tracked manually. Release v0.1.2 also adds Euclidean vector distance, new language bindings, B-tree lookup optimizations and fault-injection and Antithesis testing.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- SQLite basics ([easy posts on SQLite](https://swe.quest/tags/sqlite.md?difficulty=easy))
- change data capture concept

## Keywords

Turso, SQLite, Change Data Capture, Antithesis

## Related posts

- [Change Data Capture in SQLite, Without the Triggers](https://swe.quest/articles/change-data-capture-in-sqlite-without-the-triggers-241b82cfb5d25e99.md): Turso · 2026-11-05 · Medium · 8 min read · SQLite, Event-driven architecture, Data pipelines, Caching
  Turso Database, a Rust rewrite of SQLite, has built-in change data capture enabled with a single PRAGMA.
- [Turso Sync: a much, much, much better way to sync](https://swe.quest/articles/turso-sync-a-much-much-much-better-way-to-sync-f7b69ab545fa6e56.md): Turso · 2026-04-24 · Medium · 8 min read · SQLite, Local-first & sync, Replication, Performance engineering
  Turso, a Rust rewrite of SQLite, replaces libSQL's Embedded Replicas with a sync model built on change data capture, shipping logical changes instead of physical pages and splitting sync into separate push() and pull() operations.
- [Turso v0.4.0](https://swe.quest/articles/turso-v0-4-0-191cca637e457c1d.md): Turso · 2026-01-05 · Medium · 3 min read · SQLite, Storage engines, Query engines, Local-first & sync, Concurrency
  Turso v0.4.0 overhauls its experimental MVCC mode, which lifts SQLite's single-writer limit, adding index support, checkpointing and recovery.
- [Turso v0.6.0](https://swe.quest/articles/turso-v0-6-0-5eb94c2c93fd0b4b.md): Turso · 2026-05-12 · Medium · 12 min read · SQLite, Databases, SQL, Storage engines
  Turso 0.6 is the first release supporting all major SQLite features, adding experimental multi-process WAL access (OFD locks on Linux, fcntl elsewhere, IOCP on Windows) and VACUUM/VACUUM INTO.
- [Turso Sync: Local-First SQLite with Push and Pull](https://swe.quest/articles/turso-sync-local-first-sqlite-with-push-and-pull-8967f9053b2dc6bc.md): Turso · 2026-11-16 · Medium · 10 min read · Local-first & sync, SQLite, Replication, Event-driven architecture, Performance engineering
  Turso Sync replaces libSQL's page-based Embedded Replicas with logical row-level changes captured via CDC in Turso Database, a Rust rewrite of SQLite, so reads and writes stay local and apps call push() and pull() explicitly.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
