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

Web storage missing #50

Open
3 tasks
mrclauss opened this issue Apr 9, 2024 · 3 comments
Open
3 tasks

Web storage missing #50

mrclauss opened this issue Apr 9, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@mrclauss
Copy link
Member

mrclauss commented Apr 9, 2024

Steps to Reproduce

Currently web in v4 only supports in-memory storage, no persistence.
Needs to be fixed

Code sample

Provide a few simple lines of code to show your problem.

Details

  • Platform: iPhone 13 Pro, Galaxy S7, x86 Android Emulator on Windows etc.
  • Flutter version: [e.g. 3.0.0]
  • Isar version: [e.g. 2.5.0]

  • I searched for similar issues already
  • I filled the details section with the exact device model and version
  • I am able to provide a reproducible example
@mrclauss mrclauss added the help wanted Extra attention is needed label Apr 11, 2024
@mdmm13
Copy link

mdmm13 commented Apr 13, 2024

Discussion with options: https://t.me/isardb/6339/8816:

Oh, one thing I could really use help: Isar currently only supports in memory SQLite on web. To persist data we need to write a custom virtual file system VFS that supports persistence.

We can either use IndexedDB to emulate a file system or we use the new Origin Private File system. There is some projects we can base our work on:

If you have experience with SQLite and javascript and would like to start a discussion/work on this let me know 💜

@mrclauss
Copy link
Member Author

mrclauss commented Apr 13, 2024 via email

@rackberg
Copy link

rackberg commented Nov 6, 2024

Any progress here?
We also need isar v4 persistence storage in web.

Why is it so complicated to implement the feature like drift/sqlite3?
Can someone explain it to me? I don't get it (no 'im not an expert with virtual filesystems using flutter).

Has someone tried to reach out to @simolus3 (aka Simon Binder, developer of drift) and asked him for help?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants