Re: Checking integrity of a Core Data document with SQLite store
Re: Checking integrity of a Core Data document with SQLite store
- Subject: Re: Checking integrity of a Core Data document with SQLite store
- From: mmalc Crawford <email@hidden>
- Date: Sun, 14 Mar 2010 19:47:15 -0700
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.
mmalc
_______________________________________________
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