CountableClosedRange

extension CountableClosedRange where Bound: SQLExpressible
  • An SQL expression that checks the inclusion of an expression in a range.

    // id BETWEEN 1 AND 10
    (1...10).contains(Column("id"))
    

    Declaration

    Swift

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