mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-29 05:05:34 +08:00
Add support for specifying a configuration and customizing the options when adding a SQLite persistent store to the managed object store. closes #984
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
NSString *storePath = [RKApplicationDataDirectory() stringByAppendingPathComponent:@"RKTwitter.sqlite"];
|
||||
NSString *seedPath = [[NSBundle mainBundle] pathForResource:@"RKSeedDatabase" ofType:@"sqlite"];
|
||||
NSError *error;
|
||||
NSPersistentStore *persistentStore = [managedObjectStore addSQLitePersistentStoreAtPath:storePath fromSeedDatabaseAtPath:seedPath error:&error];
|
||||
NSPersistentStore *persistentStore = [managedObjectStore addSQLitePersistentStoreAtPath:storePath fromSeedDatabaseAtPath:seedPath withConfiguration:nil options:nil error:&error];
|
||||
NSAssert(persistentStore, @"Failed to add persistent store with error: %@", error);
|
||||
|
||||
// Create the managed object contexts
|
||||
|
||||
Reference in New Issue
Block a user