Hi

I am building an core data app that allows me to backup and restore the
data.
For backup, I simply copy the sqlite file to selected directory with a name
'app.backup'.
For restore, I also simply copy the selected file to the application
storage directory with name 'app.sqlite'

My question is: when I do restoring, How do I validate that the file is a
valid sqlite database and its schema matches the core data data model I am
using?

Thanks,
-
Peng
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to