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

[WIP] Surreal backend #8

Closed
wants to merge 8 commits into from
Closed

[WIP] Surreal backend #8

wants to merge 8 commits into from

Conversation

danielSanchezQ
Copy link
Collaborator

Add SurrealDB as storage backend.

}

async fn store(&mut self, key: Bytes, value: Bytes) -> Result<(), Self::Error> {
let mut tx = self.surreal.transaction(true, false).await?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(unrelated) that's not a very intuitive API

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YEah, too flaggy...not rusty

}

async fn load(&mut self, key: &[u8]) -> Result<Option<Bytes>, Self::Error> {
let mut tx = self.surreal.transaction(true, false).await?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a write

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Contributor

@zeegomo zeegomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need rebase after latest changes on master, otherwise looks good

@danielSanchezQ
Copy link
Collaborator Author

I'm stalling this for the moment, as it is incompatible in windows. Waku uses mingw-gcc target only while rquickjs only compiles with msvc.
I commented on an issue here, lets see if we can get some help.
Otherwise we may relegate this to only unix.

@danielSanchezQ
Copy link
Collaborator Author

I'm closing this. Not really needed, and the bothersome it brings to the build system is not worth the price (at least for the time being).

@jakubgs jakubgs deleted the surreal-backend branch February 15, 2024 09:38
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

Successfully merging this pull request may close these issues.

3 participants