-
Notifications
You must be signed in to change notification settings - Fork 606
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
iOS Sqlite DB Backup and Restore #1391
base: master
Are you sure you want to change the base?
Conversation
I think that we should add also android part |
I'm adding this functionality for an app that does not yet have an android component. I'm looking at the native code I've written, and it looks like it is shared between platforms. Is there more needed to make this work for android as well? |
no, at first glance, your code should work fine cross-platform 🎉 |
is this pr going to be merged, any update? |
I confirm that it works on android |
@radex what is the best way to get this merged? aside from resolving conflicts. |
Any updates? |
Could we get this merged please? |
+1 |
+1 really need this feature |
@heyalexchoi since this probably does not get merged and your changes are not that much, I am going to implement that in a fork of mine. CAn you give an example how you use this?
Plus, is there a way to only save certain tables? |
Any update on this? |
@radex is this a feature you would be interested in accepting, if I rebase my branch, bringing it up to date and getting rid of the merge conflicts? Asking because I don't want to do that work unless you're interested in accepting. |
Backup: This does not support saving certain tables. It only backs up and restores the sqlite db to and from file. It is a pretty efficient operation, probably more so than selecting data to export, so feel free to give it a shot for your use case. |
Can confirm it works, using this for a while <3 |
Hello @radex, would you mind taking a look at this? It would be a great addition to WatermelonDB. Thank you! |
Any one help me on how to create a fork and use it? Looks like this PR wont be merged. |
Is this going to be merged? |
Looks like This will not be merged and I do not want to host my own Fork. Hence I wrote my own backup and restore using JSON. I then upload the JSON file to iCloud/Google Drive. Working fine. The bottom code removes all existing entries when you restore coz it's my requirement. You can choose not to do this. Make sure to handle ID conflicts if necessary.
|
Sorry to tag @radex , but what could we do to help getting this merged? |
Hi! I'm looking forward to this. Any updates? |
Hey, just started using Watermelondb. Great work! I need to be able to backup and restore the db on iOS. Added the capability here. Did my best to follow guidelines and visible patterns. Please let me know if there's anything else I should do to help this get merged!
Related
#1012