CountableRange

struct CountableRange<Bound> where Bound : Strideable, Bound.Stride : SignedInteger
  • 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