CBLQueryExpression

@interface CBLQueryExpression : NSObject

A CBLQueryExpression represents an expression used for constructing a query statement.

  • Create a property expression representing the value of the given property name. - parameter: property property name in the key path format. - returns: a property expression.

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)property:(nonnull NSString *)property;

    Parameters

    property
  • Create a negated expression representing the negated result of the given expression. - parameter: expression the expression to be negated. - returns: a negated expression.

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)negated:(nonnull id)expression;

    Parameters

    expression
  • Create a negated expression representing the negated result of the given expression. - parameter: expression the expression to be negated. - returns: a negated expression

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *) not:(nonnull id)expression;

    Parameters

    expression
  • Create a concat expression to concatenate the current expression with the given expression. - parameter: expression the expression to be concatenated with. - returns: a concat expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)concat:(nonnull id)expression;

    Parameters

    expression
  • Create a multiply expression to multiply the current expression by the given expression. - parameter: expression the expression to be multipled by. - returns: a multiply expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)multiply:(nonnull id)expression;

    Parameters

    expression
  • Create a divide expression to divide the current expression by the given expression. - parameter: expression the expression to be devided by. - returns: a divide expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)divide:(nonnull id)expression;

    Parameters

    expression
  • Create a modulo expression to modulo the current expression by the given expression. - parameter: expression the expression to be moduloed by. - returns: a modulo expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)modulo:(nonnull id)expression;

    Parameters

    expression
  • Create an add expression to add the given expression to the current expression. - parameter: expression the expression to add to the current expression. - returns: an add expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)add:(nonnull id)expression;

    Parameters

    expression
  • Create a subtract expression to subtract the given expression from the current expression. - parameter: expression the expression to substract from the current expression. - returns: a subtract expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)subtract:(nonnull id)expression;

    Parameters

    expression
  • Create a less than expression that evaluates whether or not the current expression is less than the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a less than expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)lessThan:(nonnull id)expression;

    Parameters

    expression
  • Create a NOT less than expression that evaluates whether or not the current expression is not less than the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a NOT less than expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notLessThan:(nonnull id)expression;

    Parameters

    expression
  • Create a less than or equal to expression that evaluates whether or not the current expression is less than or equal to the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a less than or equal to expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)lessThanOrEqualTo:(nonnull id)expression;

    Parameters

    expression
  • Create a NOT less than or equal to expression that evaluates whether or not the current expression is not less than or equal to the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a NOT less than or equal to expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notLessThanOrEqualTo:(nonnull id)expression;

    Parameters

    expression
  • Create a greater than expression that evaluates whether or not the current expression is greater than the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a greater than expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)greaterThan:(nonnull id)expression;

    Parameters

    expression
  • Create a NOT greater than expression that evaluates whether or not the current expression is not greater than the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a NOT greater than expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notGreaterThan:(nonnull id)expression;

    Parameters

    expression
  • Create a greater than or equal to expression that evaluates whether or not the current expression is greater than or equal to the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a greater than or equal to expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)greaterThanOrEqualTo:(nonnull id)expression;

    Parameters

    expression
  • Create a NOT greater than or equal to expression that evaluates whether or not the current expression is not greater than or equal to the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a NOT greater than or equal to expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notGreaterThanOrEqualTo:(nonnull id)expression;

    Parameters

    expression
  • Create an equal to expression that evaluates whether or not the current expression is equal to the given expression. - parameter: expression the expression to be compared with the current expression. - returns: an equal to expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)equalTo:(nullable id)expression;

    Parameters

    expression
  • Create a NOT equal to expression that evaluates whether or not the current expression is not equal to the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a NOT equal to expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notEqualTo:(nullable id)expression;

    Parameters

    expression
  • Create a logical AND expression that performs logical AND operation with the current expression. - parameter: expression the expression to AND with the current expression. - returns: a logical AND expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *) and:(nonnull id)expression;

    Parameters

    expression
  • Create a logical OR expression that performs logical OR operation with the current expression. - parameter: expression the expression to OR with the current expression. - returns: a logical OR Expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *) or:(nonnull id)expression;

    Parameters

    expression
  • Create a Like expression that evaluates whether or not the current expression is LIKE the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a Like expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)like:(nonnull id)expression;

    Parameters

    expression
  • Create a NOT Like expression that evaluates whether or not the current expression is NOT LIKE the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a NOT Like expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notLike:(nonnull id)expression;

    Parameters

    expression
  • Create a regex match expression that evaluates whether or not the current expression regex matches the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a regex match expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)regex:(nonnull id)expression;

    Parameters

    expression
  • Create a regex NOT match expression that evaluates whether or not the current expression regex NOT matches the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a regex NOT match expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notRegex:(nonnull id)expression;

    Parameters

    expression
  • Create a full text match expression that evaluates whether or not the current expression full text matches the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a full text match expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)match:(nonnull id)expression;

    Parameters

    expression
  • Create a full text NOT match expression that evaluates whether or not the current expression full text NOT matches the given expression. - parameter: expression the expression to be compared with the current expression. - returns: a full text NOT match expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notMatch:(nonnull id)expression;

    Parameters

    expression
  • Create an IS NULL expression that evaluates whether or not the current expression is null. - returns: an IS NULL expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)isNull;
  • Create an IS NOT NULL expression that evaluates whether or not the current expression is NOT null. - returns: an IS NOT NULL expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notNull;
  • Create an IS expression that evaluates whether or not the current expression is equal to the given expression. - parameter: expression the expression to be compared with the current expression. - returns: an IS expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)is:(nonnull id)expression;

    Parameters

    expression
  • Create an IS NOT expression that evaluates whether or not the current expression is not equal to the given expression. - parameter: expression the expression to be compared with the current expression. - returns: an IS NOT expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)isNot:(nonnull id)expression;

    Parameters

    expression
  • Create a between expression that evaluates whether or not the current expression is between the given expressions inclusively. - parameter: expression1 the inclusive lower bound expression. - parameter: expression2 the inclusive upper bound expression. - returns: a between expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)between:(nonnull id)expression1
                                        and:(nonnull id)expression2;

    Parameters

    expression1
    expression2
  • Create a NOT between expression that evaluates whether or not the current expression is not between the given expressions inclusively. - parameter: expression1 the inclusive lower bound expression. - parameter: expression2 the inclusive upper bound expression. - returns: a NOT between expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notBetween:(nonnull id)expression1
                                           and:(nonnull id)expression2;

    Parameters

    expression1
    expression2
  • Create an IN expression that evaluates whether or not the current expression is in the given expressions. - parameter: expressions the expression array to be evaluated with. - returns: an IN exprssion.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)in:(nonnull NSArray *)expressions;

    Parameters

    expressions
  • Create a NOT IN expression that evaluates whether or not the current expression is not in the given expressions. - parameter: expressions the expression array to be evaluated with. - returns: an IN exprssion.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notIn:(nonnull NSArray *)expressions;

    Parameters

    expressions
  • Not available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;