SQLRequestProtocol
public protocol SQLRequestProtocol : SQLCollection, SQLExpression
The protocol that can generate SQL requests and subqueries.
-
Returns the request SQL.
Declaration
Swift
func requestSQL(_ context: SQLGenerationContext, forSingleResult singleResult: Bool) throws -> StringParameters
contextAn SQL generation context.
singleResultA hint that a single result row will be consumed. Implementations can optionally use it to optimize the generated SQL, for example by adding a
LIMIT 1SQL clause.Return Value
An SQL string.
View on GitHub
Install in Dash
SQLRequestProtocol Protocol Reference