CBLQueryBuilder
Undocumented
-
Create a query from the select and from component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from;Parameters
selectThe select component reresenting the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select and from component.
Declaration
Objective-C
+ (nonnull CBLQuery *)selectDistinct: (nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, and where component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, and where component.
Declaration
Objective-C
+ (nonnull CBLQuery *)selectDistinct: (nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, where, and order by component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where orderBy:(nullable NSArray<CBLQueryOrdering *> *)orderings;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
orderingsThe ordering components representing the ORDER BY clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, where, and order by component.
Declaration
Objective-C
+ (nonnull CBLQuery *) selectDistinct:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where orderBy:(nullable NSArray<CBLQueryOrdering *> *)orderings;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
orderingsThe ordering components representing the ORDER BY clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, where, and group by component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, where and group by component.
Declaration
Objective-C
+ (nonnull CBLQuery *) selectDistinct:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, where, groupby and having component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy having:(nullable CBLQueryExpression *)having;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
havingThe having component representing the HAVING clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, where, groupby and having component.
Declaration
Objective-C
+ (nonnull CBLQuery *) selectDistinct:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy having:(nullable CBLQueryExpression *)having;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
havingThe having component representing the HAVING clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, where, groupby, having, order by, and limit component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy having:(nullable CBLQueryExpression *)having orderBy:(nullable NSArray<CBLQueryOrdering *> *)orderings limit:(nullable CBLQueryLimit *)limit;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
havingThe having component representing the HAVING clause of the query.
orderingsThe ordering components representing the ORDER BY clause of the query.
limitThe limit component representing the LIMIT clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, where, groupby, having, order by, and limit component.
Declaration
Objective-C
+ (nonnull CBLQuery *) selectDistinct:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy having:(nullable CBLQueryExpression *)having orderBy:(nullable NSArray<CBLQueryOrdering *> *)orderings limit:(nullable CBLQueryLimit *)limit;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
havingThe having component representing the HAVING clause of the query.
orderingsThe ordering components representing the ORDER BY clause of the query.
limitThe limit component representing the LIMIT clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, and join component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join;Parameters
selectThe select component reresenting the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select from, and join component.
Declaration
Objective-C
+ (nonnull CBLQuery *)selectDistinct: (nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, join and where component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, join and where component.
Declaration
Objective-C
+ (nonnull CBLQuery *)selectDistinct: (nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, join, where, and group by component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, join, where, and groupby component.
Declaration
Objective-C
+ (nonnull CBLQuery *) selectDistinct:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, join, where, grop by, and having component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy having:(nullable CBLQueryExpression *)having;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
havingThe having component representing the HAVING clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, join, where, gropu by and having component.
Declaration
Objective-C
+ (nonnull CBLQuery *) selectDistinct:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy having:(nullable CBLQueryExpression *)having;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
havingThe having component representing the HAVING clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, join, where and order by component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where orderBy:(nullable NSArray<CBLQueryOrdering *> *)orderings;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
orderingsThe ordering components representing the ORDER BY clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, join, where, and order by component.
Declaration
Objective-C
+ (nonnull CBLQuery *) selectDistinct:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where orderBy:(nullable NSArray<CBLQueryOrdering *> *)orderings;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
orderingsThe ordering components representing the ORDER BY clause of the query.
Return Value
The CBLQuery instance.
-
Create a query from the select, from, join, where, group by, having, order by, and limit component.
Declaration
Objective-C
+ (nonnull CBLQuery *)select:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy having:(nullable CBLQueryExpression *)having orderBy:(nullable NSArray<CBLQueryOrdering *> *)orderings limit:(nullable CBLQueryLimit *)limit;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
havingThe having component representing the HAVING clause of the query.
orderingsThe orderings components representing the ORDER BY clause of the query.
limitThe limit component representing the LIMIT clause of the query.
Return Value
The CBLQuery instance.
-
Create a distinct query from the select, from, join, where, group by, having, order by and limit component.
Declaration
Objective-C
+ (nonnull CBLQuery *) selectDistinct:(nonnull NSArray<CBLQuerySelectResult *> *)select from:(nonnull CBLQueryDataSource *)from join:(nullable NSArray<CBLQueryJoin *> *)join where:(nullable CBLQueryExpression *)where groupBy:(nullable NSArray<CBLQueryExpression *> *)groupBy having:(nullable CBLQueryExpression *)having orderBy:(nullable NSArray<CBLQueryOrdering *> *)orderings limit:(nullable CBLQueryLimit *)limit;Parameters
selectThe select component representing the SELECT clause of the query.
fromThe from component representing the FROM clause of the query.
joinThe join components representing the JOIN clause of the query.
whereThe where component representing the WHERE clause of the query.
groupByThe group by expressions representing the GROUP BY clause of the query.
havingThe having component representing the HAVING clause of the query.
orderingsThe ordering components representing the ORDER BY clause of the query.
limitThe limit component representing the LIMIT clause of the query.
Return Value
The CBLQuery instance.
-
Not available
Declaration
Objective-C
- (nonnull instancetype)init;
CBLQueryBuilder Class Reference