mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-13 12:23:32 +01:00
add Where initializer that can accept another Where clause
This commit is contained in:
1 parent
9425cb56d7
commit
9f54ec26e2
1 file changed
+10
@@ -121,6 +121,16 @@ public struct Where<D: DynamicObject>: WhereClauseType, FetchClause, QueryClause
|
||||
|
||||
self.init(true)
|
||||
}
|
||||
|
||||
/**
|
||||
Initializes a `Where` clause with an existing `Where` clause.
|
||||
|
||||
- parameter clause: the existing `Where` clause.
|
||||
*/
|
||||
public init(_ clause: Where<D>) {
|
||||
|
||||
self.init(clause.predicate)
|
||||
}
|
||||
|
||||
/**
|
||||
Initializes a `Where` clause with a predicate that always evaluates to the specified boolean value
|
||||
|
||||
Reference in new issue
Block a user