mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-15 05:33:31 +01:00
additional safety for transactions by splitting between sync and async subclasses
This commit is contained in:
@@ -66,7 +66,7 @@ public class DataStack {
|
||||
/**
|
||||
Initializes a DataStack from an NSManagedObjectModel.
|
||||
|
||||
:param: modelName the name of the "momd" (or xcdatamodeld) file.
|
||||
:param: managedObjectModel the NSManagedObjectModel of the (.xcdatamodeld) model file.
|
||||
*/
|
||||
public required init(managedObjectModel: NSManagedObjectModel) {
|
||||
|
||||
@@ -82,8 +82,6 @@ public class DataStack {
|
||||
return mapping
|
||||
}
|
||||
|
||||
println(self.entityNameMapping)
|
||||
|
||||
self.rootSavingContext.parentStack = self
|
||||
}
|
||||
|
||||
@@ -268,7 +266,7 @@ public class DataStack {
|
||||
// MARK: Internal
|
||||
|
||||
internal let mainContext: NSManagedObjectContext
|
||||
internal let transactionQueue: GCDQueue = .createSerial("com.hardcoredata.datastack.transactionqueue")
|
||||
internal let childTransactionQueue: GCDQueue = .createSerial("com.hardcoredata.datastack.childtransactionqueue")
|
||||
|
||||
internal func entityNameForEntityClass(entityClass: NSManagedObject.Type) -> String? {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user