Query class Null safety Query

A Database query.

Implemented types
Implementers

Constructors

Query()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
isClosed bool
Whether this resource has been closed.
read-onlyinherited
jsonRepresentation String?
The JSON representation of this query.
read-only
n1ql String?
The N1QL string of this query.
read-only
parameters Parameters?
The values with which to substitute the parameters defined in the query.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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 non-existent 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.