CBLQueryLimit

@interface CBLQueryLimit : NSObject

A CBLQueryLimit represents a query LIMIT clause used for constrainting the number of results returned by a query.

  • Create a LIMIT component to limit the number of results to not more than the given limit value.

    Declaration

    Objective-C

    + (nonnull CBLQueryLimit *)limit:(nonnull CBLQueryExpression *)expression;

    Swift

    /*not inherited*/ init(_ expression: CBLQueryExpression)
  • Create a LIMIT component to skip the returned results for the given offset position and to limit the number of results to not more than the given limit value.

    Declaration

    Objective-C

    + (nonnull CBLQueryLimit *)limit:(nonnull CBLQueryExpression *)expression
                              offset:(nullable CBLQueryExpression *)expression;

    Swift

    /*not inherited*/ init(_ expression: CBLQueryExpression, offset expression: CBLQueryExpression?)
  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;