surrealdb / surrealdb.go

SurrealDB SDK for Golang
https://surrealdb.com
Apache License 2.0
231 stars 62 forks source link

Add support for Live Queries #80

Closed phughk closed 9 months ago

phughk commented 1 year ago

We would like to have live queries be supported by the driver.

The idea behind live queries, is that clients can invoke the query LIVE SELECT * FROM table and they will get a UUID in response. Then when changes happen to the table table, they will get json messages over the websocket protocol, that are associated with the live query uuid provided earlier.

This change is about handling the live query responses, as users should already be able to invoke the raw SurrealQL query. This can be buffered into a channel that can be read from.

UtkarshUmre commented 9 months ago

I'm interested in contributing to this issue and would like to confirm if it's still open. Please let me know if there's any specific guidance or requirements for contributing to this feature

phughk commented 9 months ago

This has already been resolved in #105 I believe. Closing, but if you would like advice on what you can pick up @UtkarshUmre then happy to chat it out!