mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-18 15:09:47 +02:00
add Where initializer that can accept another Where clause
This commit is contained in:
@@ -121,6 +121,16 @@ public struct Where<D: DynamicObject>: WhereClauseType, FetchClause, QueryClause
|
|||||||
|
|
||||||
self.init(true)
|
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
|
Initializes a `Where` clause with a predicate that always evaluates to the specified boolean value
|
||||||
|
|||||||
Reference in New Issue
Block a user