The database schema type, inherited from its Database.
ReadonlycolumnThe names of the result columns, i.e. the keys in a row object.
ReadonlydatabaseThe Database being queried.
A string that describes in human-readable form the steps the query will perform when it runs. (Format subject to change without notice.)
The names of all query parameters.
A map from query parameter names to their values.
You must set the values of all parameters before running the query.
Changing any parameter value will cause query change listeners to re-evaluate the query, triggering the callback if the results change.
Note: Omit the "$" in the keys: if the N1QL query uses
$date, the key is"date".
Registers a function that will be called when the query's results change, as a result of changes to documents or to a parameter value.
The function to call. Its parameter is the new query result array.
A ListenerToken whose ListenerToken.remove method you can call to remove the listener.
Runs the query, returning an array of rows.
The type of the returned rows; defaults to JSONObject. This is not type-checked, so it's up to you to make it accurate.
InterruptedQueryError if interrupt was called during execution.
Runs the query, calling the callback for each row.
The type of the returned rows; defaults to JSONObject. This is not type-checked, so it's up to you to make it accurate.
True if the query completed, false if it was interrupted.
Stops an active execute call ASAP. Does nothing if the query is not running.
Registers a custom N1QL function.
Registration is global: it will be available in all queries on all Databases.
Function's name. Case-insensitive.
The function itself. See the type UserFunction for details.
Optionaloptions: UserFunctionOptionsOther options such as min/max arg counts.
A compiled N1QL query. Created by Database.createQuery.