Live Queries in Rust
Blog post from SurrealDB
SurrealDB has introduced a live query feature, accessible through its Rust SDK, allowing real-time monitoring of data changes such as creations, updates, and deletions within a database. This live query capability builds on the traditional SELECT method by adding a "live" component, which enables users to receive continuous notifications of data changes in selected records or entire tables. The feature integrates seamlessly with SurrealDB's existing API, supporting both WebSocket and local key-value store engines, though it is not yet available for the HTTP engine. Users can employ the live query feature to listen to changes on individual records, a range of records, or entire tables, with the Rust SDK handling automatic deserialization and stream management. This development enhances the flexibility and real-time data handling capabilities for users, particularly those utilizing Rust for database interactions.