Skip to content

Sync — 2.5.0

Compare
Choose a tag to compare
@3lvis 3lvis released this 03 Dec 15:00
· 452 commits to master since this release
  • Improved NSPersistentContainer support #329
  • Improved NSOperation support #331
  • Added helper methods

Fetch

let fetched = try! Sync.fetch("id", inEntityNamed: "User", using: dataStack.mainContext)

Insert or update

try! Sync.insertOrUpdate(["id": "id", "name": "name"], inEntityNamed: "User", using: context)

Update

try! Sync.update("id", with: ["name": "Elvis"], inEntityNamed: "User", using: context)

Delete

try! Sync.delete("id", inEntityNamed: "User", using: context)