SQLExpressionLiteral
public struct SQLExpressionLiteral : SQLExpression
SQLExpressionLiteral is an expression built from a raw SQL snippet.
SQLExpressionLiteral("1 + 2")
The SQL literal may contain ? and colon-prefixed tokens:
SQLExpressionLiteral("? + ?", arguments: [1, 2])
SQLExpressionLiteral(":one + :two", arguments: ["one": 1, "two": 2])
-
The SQL literal
Declaration
Swift
public let sql: String -
Eventual arguments that feed the
?and colon-prefixed tokens in the SQL literalDeclaration
Swift
public let arguments: StatementArguments? -
Creates an SQL literal expression.
SQLExpressionLiteral("1 + 2") SQLExpressionLiteral("? + ?", arguments: [1, 2]) SQLExpressionLiteral(":one + :two", arguments: ["one": 1, "two": 2])Declaration
Swift
public init(_ sql: String, arguments: StatementArguments? = nil) -
Declaration
Swift
public func expressionSQL(_ arguments: inout StatementArguments?) -> String
View on GitHub
Install in Dash
SQLExpressionLiteral Structure Reference