Skip to content

Sync — 2.6.1

Compare
Choose a tag to compare
@3lvis 3lvis released this 10 Dec 07:52
· 447 commits to master since this release
  • Improved NSPersistentContainer extension

Insert or update

persistentContainer.insertOrUpdate(json, inEntityNamed: "User") { id, error in
    //...
}

Update

persistentContainer.update("id", with: ["name": "bossy"], inEntityNamed: "User") { id, error in
    //...
}

Delete

persistentContainer.delete("id", inEntityNamed: "User") { error in
    //...
}