Skip to content

Add support for live query streams#124

Open
7Hazard wants to merge 4 commits intosurrealdb:mainfrom
7Hazard:livequery
Open

Add support for live query streams#124
7Hazard wants to merge 4 commits intosurrealdb:mainfrom
7Hazard:livequery

Conversation

@7Hazard
Copy link
Contributor

@7Hazard 7Hazard commented Jan 24, 2026

Added live query client APIs: Action enum, typed Notification, and LiveQueryStream with blocking next() and timed pollNext(Duration).
Exposed queryLive overloads (with/without params, typed/Value) on Surreal.
Added JNI plumbing for live streams/notifications: new types/macros, stream creation, blocking and timeout polling.
Implemented live query JNI entrypoints and bridging for value notifications.
Added tests covering live notifications via pollNext timeout and blocking next() with typed payloads.

Disclaimer: This PR was achieved with the help of LLM models to understand this codebase and draft code. Namely, GPT-5.2-Codex and GPT-5.1-Codex-Max we're leveraged for this PR.

@7Hazard 7Hazard marked this pull request as draft January 26, 2026 23:15
@7Hazard 7Hazard marked this pull request as ready for review January 28, 2026 21:54
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