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

Add support for surrealdb #90

Open
prabirshrestha opened this issue Oct 2, 2023 · 3 comments
Open

Add support for surrealdb #90

prabirshrestha opened this issue Oct 2, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@prabirshrestha
Copy link

surrealdb is written in rust and can be embedded like sqlite with rocksdb backend or memory backend or can be run in HA with tikv/foundationdb. You can use surrealdb::Surreal<surrealdb::engine::any> to support any backend in surrealdb. It has a concept of live queries via websockets - https://www.youtube.com/watch?v=zEaQBiNbkoU.

-- Subscribe to all matching document changes
LIVE SELECT * FROM document
	WHERE
		account = $auth.account
		OR public = true
;

-- Subscribe to all changes to a single record
LIVE SELECT * FROM post:c569rth77ad48tc6s3ig;

-- Stop receiving change notifications
KILL "1986cc4e-340a-467d-9290-de81583267a2";

Would be great to have a surealdb backend.

@Totodore
Copy link
Owner

Totodore commented Oct 2, 2023

You mean a socket.io adapter working with surrealdb ? It is a good idea but requires issue #5 to be resolved

@prabirshrestha
Copy link
Author

Yes socketio adapter working with surrealdb. Ideally it would be good to have only async supported since that is what most of the popular framework supports as is less work for the project.

@Totodore Totodore added the enhancement New feature or request label Oct 2, 2023
@Totodore Totodore linked a pull request Oct 2, 2023 that will close this issue
@Totodore Totodore removed a link to a pull request Oct 12, 2023
@prabirshrestha
Copy link
Author

FYI: Live query api for SurrealDB got checked in. surrealdb/surrealdb#2919

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants