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

Use unjs/unstorage ? #2

Closed
Celibioux opened this issue Mar 27, 2024 · 2 comments
Closed

Use unjs/unstorage ? #2

Celibioux opened this issue Mar 27, 2024 · 2 comments

Comments

@Celibioux
Copy link

Celibioux commented Mar 27, 2024

Nice work bro ! I have just one question if you have time ! Woudn't be nice to use unjs/unstorage method as the maker of unjs/Nitro & unjs/Unstorage seeks to make a connector for Surrealdb

@Celibioux Celibioux closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
@Celibioux Celibioux reopened this Apr 4, 2024
@dvanmali
Copy link
Owner

Hi @Celibioux. Apologies for the delay with the response. Cool package, I never knew it existed. After looking through the docs, I did notice a few limitations with using their built-in storage.

  • With surrealdb, you can query relationships and nested data structures. The package limits a user in only performing CRUD operations on a Table and Items. This can result in what could have been one query call, with multiple CRUD calls.
  • With unstorage, you can only select entire tables and items. We can't specify specific fields. An "all or nothing" may be good in certain implementations but not in all use cases.

Using the native surrealdb driver provides greater support for SurrealDb specific features.

@Celibioux
Copy link
Author

Thank you so much for talking the time for this great explaination :)

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

No branches or pull requests

2 participants