QueryOperator
public enum QueryOperator : CustomStringConvertible
An enumeration representing various query operators that can be used to filter or match data in a query.
Each case represents a specific type of operation that can be performed on the data.
- Cases:
equal
: Matches values that are equal to the specified value.notEqual
: Matches values that are not equal to the specified value.range
: Matches values that fall within the specified lower and upper bounds.contains
: Matches strings that contain the specified substring.startsWith
: Matches strings that start with the specified prefix.endsWith
: Matches strings that end with the specified suffix.lessThan
: Matches values that are less than the specified value.lessThanOrEqual
: Matches values that are less than or equal to the specified value.greaterThan
: Matches values that are greater than the specified value.greaterThanOrEqual
: Matches values that are greater than or equal to the specified value.between
: Matches values that fall inclusively between the specified lower and upper bounds.in
: Matches values that are contained within the specified array of values.exists
: Matches values that exist (non-nil).notExists
: Matches values that do not exist (nil).
This enumeration conforms to CustomStringConvertible
to provide a textual description of each operator.
-
Undocumented
Declaration
Swift
case equal(AnyHashable)
-
Undocumented
Declaration
Swift
case notEqual(AnyHashable)
-
Undocumented
Declaration
Swift
case range(lower: AnyHashable, upper: AnyHashable)
-
Undocumented
Declaration
Swift
case contains(String)
-
Undocumented
Declaration
Swift
case startsWith(String)
-
Undocumented
Declaration
Swift
case endsWith(String)
-
Undocumented
Declaration
Swift
case lessThan(Any)
-
Undocumented
Declaration
Swift
case lessThanOrEqual(Any)
-
Undocumented
Declaration
Swift
case greaterThan(Any)
-
Undocumented
Declaration
Swift
case greaterThanOrEqual(Any)
-
Undocumented
Declaration
Swift
case between(lower: AnyHashable, upper: AnyHashable)
-
Undocumented
Declaration
Swift
case `in`([Any])
-
Undocumented
Declaration
Swift
case exists
-
Undocumented
Declaration
Swift
case notExists
-
A textual representation of the query planner.
This property provides a description of the query planner, which can be useful for debugging or logging purposes. It returns a
String
that represents the current state or details of the query planner.Declaration
Swift
public var description: String { get }