mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-26 11:21:32 +01:00
more source docs, deprecated some Where clause utilities
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user