QueryWithClient class

Inheritance

Constructors

QueryWithClient(ArangoDBClient client, List<QueryTextFragment> fragments, {List<BindNameValuePair>? bindVars})

Properties

bindedVars Map<String, dynamic>
Returns binded vars from query object.
no setterinherited
bindVars List<BindNameValuePair>?
getter/setter pairinherited
bindVarsMap Map<String, dynamic>
getter/setter pairinherited
client ArangoDBClient
getter/setter pair
fragments List<QueryTextFragment>
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addBindNameValuePair(BindNameValuePair nameValuePair) QueryWithClient
Adds one pair of name-value binded to query Sample:
addBindVar(String name, dynamic value) QueryWithClient
Adds one pair of name-value binded to query Sample:
addBindVarIfThen(bool cond, String name, dynamic value) QueryWithClient
Adds one condition-depended pair of name-value binded to query Sample:
addBindVarIfThenElse(bool cond, String nameIfTrue, dynamic valueIfTrue, dynamic nameIfFalse, dynamic valuesIfFalse) QueryWithClient
Adds one condition-depended pair of name-value binded to query Sample:
addLine(String line) QueryWithClient
Adds one Line to inner store of query fragments.
addLineIfThen(bool cond, String line) QueryWithClient
Adds one LineIfThen to inner store of query fragments.
addQueryTextFragment(QueryTextFragment fragment) QueryWithClient
Adds one QueryTextFragment to inner store of query fragments in during step by step constructing Query.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryString() String
Returns query string from Query object.
inherited
runAndReturnFutureList() Future<List>
Calls client.queryToList( this.toMap() ) where client is ArangoDBClient saved in client property.
runAndReturnStream() Stream
Calls client.queryToStream( this.toMap() ) where client is ArangoDBClient saved in client property.
toMap() Map<String, dynamic>
Returns created query object as Map structure, which contains keys: 'query' and 'bindVars'. The 'query' key value contains a query text, queryString() method result. The 'bindVars' key value contains a structure with binded variables, bindedVars getter result.
inherited
toString() String
Human readable view of Query object. See toMap() method to get created query object as Map structure.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited