mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Remove QueryInterfaceRequest.exists()
This commit is contained in:
1 parent
6629ec48a3
commit
b3d731b040
5 files changed
+1
-90
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user