CountableRange

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

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

    Declaration

    Swift

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