A Database query.
Constructors
- Query()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
Whether this resource has been closed.
no setterinherited
- jsonRepresentation → String?
-
The JSON representation of this query.
no setter
- n1ql → String?
-
The N1QL string of this query.
no setter
- parameters → Parameters?
-
The values with which to substitute the parameters defined in the query.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addChangeListener(
QueryChangeListener< ResultSet> listener) → FutureOr<ListenerToken> -
Adds a
listener
to be notified of changes to the results of this query. -
changes(
) → Stream< QueryChange< ResultSet> > - Returns a Stream to be notified of changes to the results of this query.
-
execute(
) → FutureOr< ResultSet> - Executes this query.
-
explain(
) → FutureOr< String> - Returns a string describing the implementation of the compiled query.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeChangeListener(
ListenerToken token) → FutureOr< void> - Removes a previously added change listener.
-
setParameters(
Parameters? value) → FutureOr< void> - Sets the parameters of this query.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJsonRepresentation(
Database database, String jsonRepresentation) → FutureOr< Query> - Creates a Query from the Query.jsonRepresentation of a query.
-
fromJsonRepresentationAsync(
AsyncDatabase database, String jsonRepresentation) → Future< AsyncQuery> - Creates an AsyncQuery from the Query.jsonRepresentation of a query.
-
fromJsonRepresentationSync(
SyncDatabase database, String jsonRepresentation) → SyncQuery - Creates an SyncQuery from the Query.jsonRepresentation of a query.
-
fromN1ql(
Database database, String query) → FutureOr< Query> -
Creates an Query from a N1QL
query
. -
fromN1qlAsync(
AsyncDatabase database, String query) → Future< AsyncQuery> -
Creates an AsyncQuery from a N1QL
query
. -
fromN1qlSync(
SyncDatabase database, String query) → SyncQuery -
Creates a SyncQuery from a N1QL
query
.