SQLExpressionLiteral
public struct SQLExpressionLiteral : SQLExpression
This type is an implementation detail of the query interface. Do not use it directly.
See https://github.com/groue/GRDB.swift/#the-query-interface
Low Level Query Interface
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)
-
This function is an implementation detail of the query interface. Do not use it directly.
See https://github.com/groue/GRDB.swift/#the-query-interface
Low Level Query Interface
See SQLExpression.expressionSQL(_:arguments:)
Declaration
Swift
public func expressionSQL(_ arguments: inout StatementArguments?) -> String