Remove QueryInterfaceRequest.exists()

This commit is contained in:
Gwendal Roué authored and Gwendal Roué committed 2017-06-20 07:54:19 +02:00
1 parent 6629ec48a3
commit b3d731b040
5 files changed
+1 -90

No files matched your search

-13
View File
@@ -27,19 +27,6 @@ public protocol SQLSelectQuery : Request, SQLCollection {
func selectQuerySQL(_ arguments: inout StatementArguments?) -> String
}
extension SQLSelectQuery {
/// Returns an SQL expression that checks whether the receiver, as a
/// subquery, returns any row.
///
///
/// let request = Person.all()
/// request.exists() // EXISTS (SELECT * FROM persons)
public func exists() -> SQLExpression {
return SQLExpressionExists(self)
}
}
// MARK: - SQLCollection adoption