-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Is your feature request related to a problem?
It is not currently possible to spawn a SurrealDB 3.0 instance backed by IndexedDB. It has many shiny features, that greatly improve DX, e.g. closures can capture parameters, the DB can store files. And we have surrealdb@beta now, that is not aligned with the latest version.
Describe the solution
- OPFS may be used to back the in-browser file storage. There's a Rust crate for this purpose
Not sure what else could be a potential blocker. I hope this is possible :)
Alternative methods
Use a cloud-based one (not really an option for an offline-first PWA), or the old version (new features and awesome DX missing)
SurrealDB version
Platform: Web Navigator: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Version: 3.7.0 Flags: feature_flags: false, query_view: true, explorer_view: true, graphql_view: false, designer_view: true, auth_view: true, functions_view: true, parameters_view: true, apidocs_view: true, themes: true, syntax_themes: false, newsfeed: true, database_version_check: true, highlight_tool: false, legacy_serve: false, cloud_enabled: true, cloud_endpoints: default, cloud_access: true, cloud_killswitch: true, changelog: auto, website_base: production, support_tickets_endpoint: production, support_tickets: true, sidebar_customization: false, gtm_debug: false, sidekick_ai: true, v3_migration_tooling: true, sandbox_deploy: true
JavaScript SDK version
2.0.0-beta.1
Contact Details
Is there an existing issue for this?
- I have searched the existing issues
Code of Conduct (repository /surrealdb.js)
- I agree to follow this project's Code of Conduct