Skip to content

[ISSUE] Reliable offline storage #169

@zs-dima

Description

@zs-dima

👟 Reproduction steps

Support ACID support when it is possible.
Access data from different isolates.

👍 Expected behavior

Thanks a lot for implementing so useful feature.
It could be nice to use the most relible local storage for every platform.
For example, the same as Drift library: https://drift.simonbinder.eu/web/
Mobile: SQLite (ACID + https://www.sqlite.org/testing.html)
Web: SQLite+Wasm when browser support it or IndexDB in other case.

Firebase use SQLite for mobile and IndexDB for web for example, that makes it relible and very fast.

👎 Actual Behavior

sembast leads to multiple issues, for example:
https://github.com/tekartik/sembast.dart/issues?q=is%3Aissue+isolate
moreover fixes issues rate to low for this library to account it as a good solution to access local storage: https://github.com/tekartik/sembast.dart/issues

Yes, they have warning in documentation, but it is not a solution:

sembast_sqflite should be used from the main isolate only

You can see how Drift solves all this issues or mabe even use Drift instead Sembast

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions