Skip to content

Sync — 3.3.0

Compare
Choose a tag to compare
@3lvis 3lvis released this 26 Jun 07:25
· 278 commits to master since this release
  • Add Objective-C support for syncing changes using Sync operations

Options

@objc public enum CompatibleOperationOptions: Int {
    case insert = 0
    case update = 1
    case delete = 2
    case insertUpdate = 3
    case insertDelete = 4
    case updateDelete = 5
    case all = 6
}

APIs

class func compatibleChanges(_ changes: [[String: Any]], inEntityNamed entityName: String, dataStack: DataStack, operations: CompatibleOperationOptions, completion: ((_ error: NSError?) -> Void)?)
class func compatibleChanges(_ changes: [[String: Any]], inEntityNamed entityName: String, predicate: NSPredicate?, dataStack: DataStack, operations: CompatibleOperationOptions, completion: ((_ error: NSError?) -> Void)?)