more source docs, deprecated some Where clause utilities

This commit is contained in:
John Rommel Estropia committed 2017-11-04 10:37:54 +09:00
1 parent 0430f66240
commit 8ce26c213d
6 files changed
+684 -96

No files matched your search

+10
View File
@@ -502,6 +502,16 @@ public extension Where where D: CoreStoreObject {
self.init(D.meta[keyPath: keyPath].keyPath, isMemberOf: list)
}
/**
Initializes a `Where` clause from a closure
- parameter condition: closure that returns the `Where` clause
*/
public init(_ condition: (D) -> Where<D>) {
self = condition(D.meta)
}
}