SQLExpression
public struct SQLExpression
extension SQLExpression: SQLSpecificExpressible
SQLExpression is the type that represents an SQL expression, as described at https://www.sqlite.org/lang_expr.html
-
AssociativeBinaryOperator
is an associative binary operator, such as+
,*
,AND
, etc.Use it with the
joined(operator:)
method. For example:
See more// SELECT score + bonus + 1000 FROM player let values = [ scoreColumn, bonusColumn, 1000.databaseValue] Player.select(values.joined(operator: .add))
Declaration
Swift
public struct AssociativeBinaryOperator : Hashable
-
Declaration
Swift
public var sqlExpression: SQLExpression { get }