JQL class

EJDB2 query builder/executor.

Properties

collection String
final
hashCode int
The hash code for this object. [...]
read-only, inherited
limit int
read / write
qtext String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
skip int
read / write

Methods

execute() Stream<JBDOC>
Execute query and returns a stream of matched documents.
executeScalarInt() Future<int>
Return scalar integer value as result of query execution. For example execution of count query: /... | count
executeTouch() Future<void>
Executes query then listen event stream for first event/error to eagerly fetch pending error if available.
first() Future<Optional<JBDOC>>
Returns optional element for first record in result set.
firstN(int n) Future<List<JBDOC>>
Returns list of first n matched documents. Use it with care to avoid wasting of memory.
firstRequired() Future<JBDOC>
Return first record in result set or resolve to notfound EJDB2Error error.
list([int limitArg]) Future<List<JBDOC>>
Returns list of matched documents. Use it with care to avoid wasting of memory.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setBoolean(dynamic placeholder, bool val) JQL
Set bool val at the specified placeholder. placeholder can be either string or int
setDouble(dynamic placeholder, double val) JQL
Set double val at the specified placeholder. placeholder can be either string or int
setInt(dynamic placeholder, int val) JQL
Set integer val at the specified placeholder. placeholder can be either string or int
setJson(dynamic placeholder, Object json) JQL
Set json at the specified placeholder. placeholder can be either string or int
setRegexp(dynamic placeholder, RegExp val) JQL
Set RegExp val at the specified placeholder. placeholder can be either string or int
setString(dynamic placeholder, String val) JQL
Set string val at the specified placeholder. placeholder can be either string or int
toString() String
A string representation of this object. [...]
inherited

Operators

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