NSPersistentStoreCoordinator
Undocumented
-
Synchronously exexcutes a given function on the coordinator’s internal queue.
Attention
This method may safely be called reentrantly.Throws
Any error thrown by the inner function. This method should be technicallyrethrows
, but cannot be due to Swift limitations.Declaration
Swift
public func performAndWaitOrThrow<Return>(_ body: () throws -> Return) rethrows -> Return
-
Default persistent store options used for the
SQLite
backedNSPersistentStoreCoordinator
Declaration
Swift
public static var stockSQLiteStoreOptions: [AnyHashable: Any]
-
Asynchronously creates an
NSPersistentStoreCoordinator
and adds aSQLite
based store.Declaration
Swift
public class func setupSQLiteBackedCoordinator(_ managedObjectModel: NSManagedObjectModel, storeFileURL: URL, persistentStoreOptions: [AnyHashable : Any]? = NSPersistentStoreCoordinator.stockSQLiteStoreOptions, completion: @escaping (CoreDataStack.CoordinatorResult) -> Void)