• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Validate core data sqlite file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validate core data sqlite file


  • Subject: Re: Validate core data sqlite file
  • From: Robert Vojta <email@hidden>
  • Date: Mon, 13 May 2013 11:27:15 +0200

And here's the code to check sqlite db integrity …

https://gist.github.com/robertvojta/1251278


On Monday, 13. May 2013 at 11:10, Mike Abdullah wrote:

>
> On 12 May 2013, at 22:15, Peng Gu <email@hidden (mailto:email@hidden)> wrote:
>
> > 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?
> >
>
>
> Call -addPersistentStoreWithType:configuration:URL:options:error:
> It will fail if the store is of the wrong schema.
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden (mailto:email@hidden))
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com (http://lists.apple.com)
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden (mailto:email@hidden)

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


References: 
 >Validate core data sqlite file (From: Peng Gu <email@hidden>)
 >Re: Validate core data sqlite file (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Validate core data sqlite file
  • Next by Date: Displaying "Trebuchet MS" font
  • Previous by thread: Re: Validate core data sqlite file
  • Next by thread: Parental Controls - [Was: NSTask Explodes. Clueless.]
  • Index(es):
    • Date
    • Thread