SQLSubqueryable
public protocol SQLSubqueryable : SQLSpecificExpressible
The protocol for types that can be embedded as a subquery.
-
Undocumented
Declaration
Swift
var sqlSubquery: SQLSubquery { get }
-
sqlExpression
Extension methodReturns a subquery expression.
Declaration
Swift
public var sqlExpression: SQLExpression { get }
-
contains(_:
Extension method) Returns an expression that checks the inclusion of the expression in the subquery.
// 1000 IN (SELECT score FROM player) let request = Player.select(Column("score"), as: Int.self) let condition = request.contains(1000)
Declaration
Swift
public func contains(_ element: SQLExpressible) -> SQLExpression
-
contains(_:
Extension method) Returns an expression that checks the inclusion of the expression in the subquery.
// name COLLATE NOCASE IN (SELECT name FROM player) let request = Player.select(Column("name"), as: String.self) let condition = request.contains(Column("name").collating(.nocase))
Declaration
Swift
public func contains(_ element: SQLCollatedExpression) -> SQLExpression