diff --git a/Sources/Where.swift b/Sources/Where.swift index 5e2da49..81df48b 100644 --- a/Sources/Where.swift +++ b/Sources/Where.swift @@ -121,6 +121,16 @@ public struct Where: 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) { + + self.init(clause.predicate) + } /** Initializes a `Where` clause with a predicate that always evaluates to the specified boolean value