CBLQueryArrayExpression

Undocumented

  • Creates a variable expression that represents an item in the array expression (ANY/ANY AND EVERY/EVERY IN SATISFIES ).

    Declaration

    Objective-C

    + (nonnull CBLQueryVariableExpression *)variableWithName:
        (nonnull NSString *)name;

    Parameters

    name

    The variable name.

    Return Value

    The variable expression.

  • Creates an ANY quantified operator (ANY IN SATISFIES ) to evaluate expressions over an array. The ANY operator returns TRUE if at least one of the items in the array satisfies the given satisfies expression.

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)
          any:(nonnull CBLQueryVariableExpression *)variable
           in:(nonnull CBLQueryExpression *)inExpression
    satisfies:(nonnull CBLQueryExpression *)satisfies;

    Parameters

    variable

    The variable expression.

    inExpression

    The IN expression that can be evaluated as an array value.

    satisfies

    The expression to be evaluated with.

    Return Value

    The ANY quantifies operator.

  • Creates an ANY AND EVERY quantified operator (ANY AND EVERY IN SATISFIES ) to evaluate expressions over an array. The ANY AND EVERY operator returns TRUE if the array is NOT empty, and at least one of the items in the array satisfies the given satisfies expression.

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)
    anyAndEvery:(nonnull CBLQueryVariableExpression *)variable
             in:(nonnull CBLQueryExpression *)inExpression
      satisfies:(nonnull CBLQueryExpression *)satisfies;

    Parameters

    variable

    The variable expression.

    inExpression

    The IN expression that can be evaluated as an array value.

    satisfies

    The expression to be evaluated with.

    Return Value

    The ANY AND EVERY quantifies operator.

  • Creates an EVERY quantified operator (ANY IN SATISFIES ) to evaluate expressions over an array. The EVERY operator returns TRUE if the array is empty OR every item in the array satisfies the given satisfies expression.

    Declaration

    Objective-C

    + (nonnull CBLQueryExpression *)
        every:(nonnull CBLQueryVariableExpression *)variable
           in:(nonnull CBLQueryExpression *)inExpression
    satisfies:(nonnull CBLQueryExpression *)satisfies;

    Parameters

    variable

    The variable expression.

    inExpression

    The IN expression that can be evaluated as an array value.

    satisfies

    The expression to be evaluated with.

    Return Value

    The EVERY quantifies operator.

  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;