Skip to content

feat(database): add SQL live updates via triggers and change-log - #1602

Open
JohnChantz wants to merge 2 commits into
feat/database-realtime-mongofrom
feat/database-realtime-sql
Open

feat(database): add SQL live updates via triggers and change-log#1602
JohnChantz wants to merge 2 commits into
feat/database-realtime-mongofrom
feat/database-realtime-sql

Conversation

@JohnChantz

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other (please describe)

Does this PR introduce a breaking change?

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the main branch
  • When resolving a specific issue, it's referenced in the PR's description (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature

Other information:

Split from #1594 (3/3). Stacked on #1601 (Mongo live updates), which is stacked on #1600 (event relays).

Extends the same metadata-only live-update contract beyond MongoDB. PostgreSQL, MySQL, MariaDB, and SQLite emit change events via table triggers and a durable internal change-log. The Mongo coordinator is generalized to ChangeStreamCoordinator so both engines share leadership, resume, and room fan-out.

Test plan

  • SQL builder unit tests (sql-builders.test.ts) plus coordinator/status unit tests
  • Opt a SQL schema in with realtime.enabled, mutate a row, confirm a change event with no document payload
  • Confirm trigger/change-log objects are created only for opted-in schemas

Extend realtime beyond MongoDB so PostgreSQL, MySQL, MariaDB, and SQLite
emit the same metadata-only change events using table triggers and a
durable internal log.
@kkopanidis
kkopanidis force-pushed the feat/database-realtime-sql branch from 9828bce to 3031479 Compare September 11, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant