• 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: Checking integrity of a Core Data document with SQLite store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking integrity of a Core Data document with SQLite store


  • Subject: Re: Checking integrity of a Core Data document with SQLite store
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 15 Mar 2010 11:21:27 -0500

On 14 Mar 2010, at 9:47 PM, mmalc Crawford wrote:

> On Mar 14, 2010, at 7:21 pm, Dave Fernandes wrote:
>
>> So my question is - how do you detect this before loading the file? I'm aware of the sqlite3 PRAGMA integrity_check, but there does not seem to be a C API for this. Any pointers?
>>
> <http://developer.apple.com/mac/library/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSPersistentStoreCoordinator_Class/NSPersistentStoreCoordinator.html#//apple_ref/doc/c_ref/NSSQLitePragmasOption>
>
> See <http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CoreData/Articles/cdPersistentStores.html#//apple_ref/doc/uid/TP40002875> for an example.

My understanding may be incomplete, but it seems that the example shows the use of pragmas (pragmata?) that set the state of the store at addPersistentStore...: time, and have no significant return value. PRAGMA integrity_check and PRAGMA quick_check return tables.

Is there a way to collect the results of the integrity check? Would addPersistentStore...: return nil and somehow populate the error return?

	— F

_______________________________________________

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: 
 >Checking integrity of a Core Data document with SQLite store (From: Dave Fernandes <email@hidden>)
 >Re: Checking integrity of a Core Data document with SQLite store (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: [NSTableview] can't make selected text stay black
  • Next by Date: Re: mount dmg disk
  • Previous by thread: Re: Checking integrity of a Core Data document with SQLite store
  • Next by thread: Re: Checking integrity of a Core Data document with SQLite store
  • Index(es):
    • Date
    • Thread