Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/live query #41

Merged
merged 11 commits into from
Nov 10, 2023
Merged

Feat/live query #41

merged 11 commits into from
Nov 10, 2023

Conversation

Odonno
Copy link
Contributor

@Odonno Odonno commented Nov 5, 2023

Closes #11

  • Live Query instance
  • Kill Live Query
    • Manually
    • Automatically on dispose
  • Listen Live Query (from uuid)
  • Listen table changes
    • with full record value
    • with JSON patch
  • Live Query responses
    • Create, Update, Delete
    • Close with reasons
    • Filter only "actions" with GetResults() function (also GetCreatedRecords, GetUpdatedRecords and GetDeletedIds)
  • Reactive tests using ToObservable()
  • Rx.NET operators
    • Creator observable: ObserveQuery() and ObserveTable()
    • Same filters as for enumerable: SelectResults(), etc...
    • Operators: AggregateRecords() and ScanRecords() to consume collections (from a Dictionary<string, T>)

2 new projects:

  • SurrealDb.Net.LiveQuery.Tests - isolate tests on Live Query (parallelization disabled)
  • SurrealDb.Reactive - Reactive Extensions for SurrealDb Live Query (creators & operators)

@Odonno Odonno marked this pull request as ready for review November 10, 2023 12:12
@kearfy kearfy merged commit 74d69b9 into surrealdb:main Nov 10, 2023
1 of 2 checks passed
@Odonno Odonno deleted the feat/live-query branch November 10, 2023 18:49
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.

Live queries
2 participants