launchbadge / sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
Apache License 2.0
12.36k stars 1.18k forks source link

feat: Add set_update_hook on SqliteConnection #3260

Closed gridbox closed 3 weeks ago

gridbox commented 4 weeks ago

Fixes #3114

This is an initial pass at exposing the Sqlite update hook. I used set_progress_handler as a guide. This allows the consuming code to register a callback on the connection and receive the operation, database name, table name, and rowid of the affected record.

I'm in the process of adding listener functionality in my own code which will use channels to publish data changes but thought that may be out of scope for sqlx itself.

Mek101 commented 3 weeks ago

When will the next release be published?