Skip to content

v0.3.0

Choose a tag to compare

@marcelocantos marcelocantos released this 23 Feb 07:43
· 96 commits to master since this release

Added

  • Query subscriptions — register SQL queries on the replica with subscribe(); receive automatically updated result sets in HandleResult::subscriptions whenever incoming changes affect relevant tables
  • Result-change detection — subscription results are suppressed when the query output is unchanged (FNV-1a hash comparison), avoiding unnecessary work in downstream consumers
  • Table dependency discovery — sqlite3_set_authorizer during prepare automatically discovers which tables each subscription query reads from; JOIN queries fire when any referenced table changes
  • Optimised invalidation — reverse index (table → subscription IDs), cached prepared statements (sqlite3_reset instead of re-prepare), and cached column names for minimal evaluation overhead