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

Data wipe after Hot Restart? #173

Open
tobinharris opened this issue May 30, 2020 · 2 comments
Open

Data wipe after Hot Restart? #173

tobinharris opened this issue May 30, 2020 · 2 comments

Comments

@tobinharris
Copy link

Hi

I've noticed a few times that all my data is lost after a Hot Restart. It's quite rare, but obviously worrying :)

I suspect my usage patterns aren't great - tend to open() before each query/write and close() after. What's the recommended way of opening and closing a db in Flutter?

@alextekartik
Copy link
Collaborator

Thanks for the report. Even a hot restart should not corrupt data but that is not something easy to reproduce to debug it. My recommended usage is to keep the database open (never close it)

@tobinharris
Copy link
Author

Thanks, I'll give that a go and remove the close() commands.

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