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:
Blake Watters
2012-10-29 00:32:56 -04:00
parent d11415b01e
commit c44f4010fa
7 changed files with 53 additions and 28 deletions

View File

@@ -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