CBLQueryExpression

@interface CBLQueryExpression : NSObject

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

  • Construct a property keypath expression.

    Declaration

    Objective-C

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

    Swift

    class func property(_ property: String) -> CBLQueryExpression
  • Construct a negated expression.

    Declaration

    Objective-C

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

    Swift

    class func negated(_ expression: Any) -> CBLQueryExpression
  • Construct a negated expression.

    Declaration

    Objective-C

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

    Swift

    class func not(_ expression: Any) -> CBLQueryExpression
  • Construct a string concatinate expression.

    Declaration

    Objective-C

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

    Swift

    func concat(_ expression: Any) -> CBLQueryExpression
  • Construct a multiply operation expression.

    Declaration

    Objective-C

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

    Swift

    func multiply(_ expression: Any) -> CBLQueryExpression
  • Construct a divide operation expression.

    Declaration

    Objective-C

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

    Swift

    func divide(_ expression: Any) -> CBLQueryExpression
  • Construct a modulus operation expression.

    Declaration

    Objective-C

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

    Swift

    func modulo(_ expression: Any) -> CBLQueryExpression
  • Construct an add operation expression.

    Declaration

    Objective-C

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

    Swift

    func add(_ expression: Any) -> CBLQueryExpression
  • Construct an subtract operation expression.

    Declaration

    Objective-C

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

    Swift

    func subtract(_ expression: Any) -> CBLQueryExpression
  • Construct a less than comparison expression.

    Declaration

    Objective-C

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

    Swift

    func lessThan(_ expression: Any) -> CBLQueryExpression
  • Construct a NOT less than comparison expression.

    Declaration

    Objective-C

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

    Swift

    func notLessThan(_ expression: Any) -> CBLQueryExpression
  • Construct a less than or equal to comparison expression.

    Declaration

    Objective-C

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

    Swift

    func lessThanOrEqual(to expression: Any) -> CBLQueryExpression
  • Construct a NOT less than or equal to comparison expression.

    Declaration

    Objective-C

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

    Swift

    func notLessThanOrEqual(to expression: Any) -> CBLQueryExpression
  • Construct a greater then comparison expression.

    Declaration

    Objective-C

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

    Swift

    func greaterThan(_ expression: Any) -> CBLQueryExpression
  • Construct a NOT greater then comparison expression.

    Declaration

    Objective-C

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

    Swift

    func notGreaterThan(_ expression: Any) -> CBLQueryExpression
  • Construct a greather than or equal to comparison expression.

    Declaration

    Objective-C

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

    Swift

    func greaterThanOrEqual(to expression: Any) -> CBLQueryExpression
  • Construct a NOT greather than or equal comparison expression.

    Declaration

    Objective-C

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

    Swift

    func notGreaterThanOrEqual(to expression: Any) -> CBLQueryExpression
  • Construct an equal to comparison expression.

    Declaration

    Objective-C

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

    Swift

    func equal(to expression: Any?) -> CBLQueryExpression
  • Construct a NOT equal to comparison expression.

    Declaration

    Objective-C

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

    Swift

    func notEqual(to expression: Any?) -> CBLQueryExpression
  • Construct an AND operation expression.

    Declaration

    Objective-C

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

    Swift

    func and(_ expression: Any) -> CBLQueryExpression
  • Construct an OR operation expression.

    Declaration

    Objective-C

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

    Swift

    func or(_ expression: Any) -> CBLQueryExpression
  • Construct a LIKE comparison expression.

    Declaration

    Objective-C

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

    Swift

    func like(_ expression: Any) -> CBLQueryExpression
  • Construct a NOT LIKE comparison expression.

    Declaration

    Objective-C

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

    Swift

    func notLike(_ expression: Any) -> CBLQueryExpression
  • Construct a REGEX_LIKE comparison expression.

    Declaration

    Objective-C

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

    Swift

    func regex(_ expression: Any) -> CBLQueryExpression
  • Construct a NOT REGEX_LIKE comparison expression.

    Declaration

    Objective-C

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

    Swift

    func notRegex(_ expression: Any) -> CBLQueryExpression
  • Construct a fulltext search matching expression.

    Declaration

    Objective-C

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

    Swift

    func match(_ expression: Any) -> CBLQueryExpression
  • Construct a fulltext search NOT matching expression.

    Declaration

    Objective-C

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

    Swift

    func notMatch(_ expression: Any) -> CBLQueryExpression
  • Construct a null check expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)isNull;

    Swift

    func isNull() -> CBLQueryExpression
  • Construct a NOT null check expression.

    Declaration

    Objective-C

    - (nonnull CBLQueryExpression *)notNull;

    Swift

    func notNull() -> CBLQueryExpression
  • Construct an is comparsion expression. The is comparison is the same as an equal to comparison.

    Declaration

    Objective-C

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

    Swift

    func `is`(_ expression: Any) -> CBLQueryExpression
  • Construct an is NOT comparsion expression.

    Declaration

    Objective-C

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

    Swift

    func isNot(_ expression: Any) -> CBLQueryExpression
  • Construct a between expression.

    Declaration

    Objective-C

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

    Swift

    func between(_ expression1: Any, and expression2: Any) -> CBLQueryExpression
  • Construct a NOT between expression.

    Declaration

    Objective-C

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

    Swift

    func notBetween(_ expression1: Any, and expression2: Any) -> CBLQueryExpression
  • Construct a IN expression.

    Declaration

    Objective-C

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

    Swift

    func inExpressions(_ expressions: [Any]) -> CBLQueryExpression
  • Construct a NOT IN expression.

    Declaration

    Objective-C

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

    Swift

    func not(inExpressions expressions: [Any]) -> CBLQueryExpression
  • Not available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;