-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
loss of data after app crashed/exited forcibly #170
Comments
I am not aware of such issue but data corruption is not something easy to test. Alternatively, if you don't trust sembast io format, one solution is to use sembast_sqflite (the notepad example uses it) which stores data in a sqlite file instead of a plain json file. |
sembast_sqflite looks pretty interesting, you are doing quite an amazing job, I guess all I have to do is switch my package to sembast_sqflite and I dont have to change any of my querries |
sembast_sqflite depends on sembast so you can keep sembast. Basically it is just a matter of having the good 'factory' and 'name' to open a database. after that database and queries are the same. The notepad example uses sembast_sqflite on mobile and sembast_web on flutter web. Conditional imports can be used for this (see an example - the one used by the notepad example - here https://github.com/tekartik/app_flutter_utils.dart/tree/master/app_sembast/lib/src) |
I am getting this issue occasionally. Try to record data on Almost all time getting null from recrord. |
have the same problem, switched to |
A user reported that all his local data was lost after he interrupted online uploading of local data and app wan exited forcibly.
is that supposed to happen?
The text was updated successfully, but these errors were encountered: