Sequence

protocol Sequence
  • An SQL expression that checks the inclusion of an expression in a sequence.

    // id IN (1,2,3)
    [1, 2, 3].contains(Column("id"))
    

    Declaration

    Swift

    public func contains(_ element: SQLSpecificExpressible) -> SQLExpression
  • An SQL expression that checks the inclusion of an expression in a sequence.

    // name IN ('A', 'B') COLLATE NOCASE
    ["A", "B"].contains(Column("name").collating(.nocase))
    

    Declaration

    Swift

    public func contains(_ element: SQLCollatedExpression) -> SQLExpression