public final class QueryBuilder extends Object
Modifier and Type | Method and Description |
---|---|
static Query |
createQuery(String query,
Database database)
Create Query from a N1QL string
|
static Select |
select(SelectResult... results)
Create a SELECT statement instance that you can use further
(e.g.
|
static Select |
selectDistinct(SelectResult... results)
Create a SELECT DISTINCT statement instance that you can use further
(e.g.
|
@NonNull public static Select select(@NonNull SelectResult... results)
results
- The array of the SelectResult object for specifying the returned values.@NonNull public static Select selectDistinct(@NonNull SelectResult... results)
results
- The array of the SelectResult object for specifying the returned values.@NonNull public static Query createQuery(@NonNull String query, @NonNull Database database) throws CouchbaseLiteException
query
- A valid N1QL query.CouchbaseLiteException