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:

    // SELECT score + bonus + 1000 FROM player
    let values = [
        scoreColumn,
        bonusColumn,
        1000.databaseValue]
    Player.select(values.joined(operator: .add))
    
    See more

    Declaration

    Swift

    public struct AssociativeBinaryOperator : Hashable

SQLExpressible