Package com.couchbase.lite
Class QueryBuilder
java.lang.Object
com.couchbase.lite.QueryBuilder
- 
Method Summary
Modifier and TypeMethodDescriptionstatic QuerycreateQuery(String query, Database database) Create Query from a N1QL stringstatic Selectselect(SelectResult... results) Create a SELECT statement instance that you can use further (e.g.static SelectselectDistinct(SelectResult... results) Create a SELECT DISTINCT statement instance that you can use further (e.g. 
- 
Method Details
- 
select
Create a SELECT statement instance that you can use further (e.g. calling the from() function) to construct the complete query statement.- Parameters:
 results- The array of the SelectResult object for specifying the returned values.- Returns:
 - A Select object.
 
 - 
selectDistinct
Create a SELECT DISTINCT statement instance that you can use further (e.g. calling the from() function) to construct the complete query statement.- Parameters:
 results- The array of the SelectResult object for specifying the returned values.- Returns:
 - A Select distinct object.
 
 - 
createQuery
Create Query from a N1QL string- Parameters:
 query- A valid N1QL query.- Returns:
 - database The database against which the query will be run.
 
 
 -