mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
NSBatchRequest @CoreStore? #192
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shift00 on GitHub (Nov 29, 2017).
Hi,
can anyone tell me, does CoreStore supports batch requests? I need write multiple changes into database on existing data, but I can't find good solution for this problem.
For example NSBatchUpdateRequest seems like this:
let batchRequest = NSBatchUpdateRequest(entityName: "SomeEntity") batchRequest.propertiesToUpdate = ["status": PointType.new.rawValue] batchRequest.resultType = .updatedObjectIDsResultType@JohnEstropia commented on GitHub (Nov 29, 2017):
Hi, batch requests are currently not yet implemented, sorry.
You should still be able to do this manually within transactions:
@shift00 commented on GitHub (Nov 30, 2017):
It's working! Thanks.