mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Querying via managed object's context #80
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 @a13xb on GitHub (Sep 9, 2016).
It would be nice to be able to do a query through managed object's context, so you can filter and search object's relationships without having to pass a data stack explicitly or using the default global data stack.
For example:
But right now all querying methods on
NSManagedObjectContextare marked as internal. Would you be open to making them public?@JohnEstropia commented on GitHub (Sep 10, 2016):
It was a conscious decision to not expose NSManagedObjectContext to ensure transaction integrity. I'll see if there's a way to take advantage of Swift 3's new
privatebehavior so only transaction and datastack extensions can access NSManagedObjectContext's fetch methods@JohnEstropia commented on GitHub (Nov 21, 2016):
This has been implemented in
b230ed6400See the new
FetchableSourceandQueryableSourceprotocols