9 #import <Foundation/Foundation.h> 12 NS_ASSUME_NONNULL_BEGIN
32 @property (copy, nullable, nonatomic)
id where;
40 @property (copy, nullable, nonatomic) NSArray*
orderBy;
46 @property (copy, nullable, nonatomic) NSArray*
returning;
52 @property (copy, nullable, nonatomic) NSArray*
groupBy;
59 @property (copy, nullable, nonatomic)
id having;
69 @property (nonatomic) NSUInteger
offset;
73 @property (nonatomic) NSUInteger
limit;
78 @property (copy, nullable, nonatomic) NSDictionary*
parameters;
81 - (BOOL) check: (NSError**)error;
93 - (nullable NSString*) explain: (NSError**)outError;
101 - (nullable NSEnumerator<CBLQueryRow*>*) run: (NSError**)error;
105 - (nullable NSEnumerator<CBLDocument*>*) allDocuments: (NSError**)error;
112 NS_ASSUME_NONNULL_END
instancetype NS_UNAVAILABLE()
NSArray * returning
An array of NSExpressions (or expression format strings) describing values to include in each result ...
Definition: CBLQuery.h:46
A Couchbase Lite database.
Definition: CBLDatabase.h:77
NSArray * orderBy
An array of NSSortDescriptors or NSStrings, specifying properties or expressions that the result rows...
Definition: CBLQuery.h:40
id having
Specifies a condition (predicate) that grouped rows have to match; corresponds to the HAVING clause o...
Definition: CBLQuery.h:59
A compiled database query.
Definition: CBLQuery.h:22
A Couchbase Lite document.
Definition: CBLDocument.h:36
NSUInteger limit
The maximum number of rows to return; corresponds to the LIMIT property of a SQL or N1QL query...
Definition: CBLQuery.h:73
NSUInteger offset
The number of result rows to skip; corresponds to the OFFSET property of a SQL or N1QL query...
Definition: CBLQuery.h:69
id where
Specifies a condition (predicate) that documents have to match; corresponds to the WHERE clause of a ...
Definition: CBLQuery.h:32
A single result from a CBLQuery.
Definition: CBLQueryRow.h:17
BOOL distinct
If YES, duplicate result rows will be removed so that all rows are unique; corresponds to the DISTINC...
Definition: CBLQuery.h:64
NSArray * groupBy
An array of NSExpressions (or expression format strings) describing how to group rows together: all d...
Definition: CBLQuery.h:52
CBLDatabase * database
The database being queried.
Definition: CBLQuery.h:25
NSDictionary * parameters
Values to substitute for placeholder parameters defined in the query.
Definition: CBLQuery.h:78