QueryBuilder<T> class

Query builder allows creating reusable queries.

Constructors

QueryBuilder(Store store, EntityDefinition<T> entity, Condition<T>? qc)
Start creating a query.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

inherited
backlinkMany<SourceEntityT>(QueryRelationToMany<SourceEntityT, T> rel, [Condition<SourceEntityT>? qc]) → _QueryBuilder<SourceEntityT>
inherited
build() Query<T>
Finish building a Query. Call Query.close() after you're done with it to free resources.
inherited
linkMany<TargetEntityT>(QueryRelationToMany<T, TargetEntityT> rel, [Condition<TargetEntityT>? qc]) → _QueryBuilder<TargetEntityT>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
order<D>(QueryProperty<T, D> p, {int flags = 0}) QueryBuilder<T>
Configure how the results are ordered. Pass a combination of Order flags.
toString() String
A string representation of this object.
inherited
watch({bool triggerImmediately = false}) Stream<Query<T>>
Builds the Query and creates a single-subscription Stream that sends the query whenever there are changes to the boxes of the queried entities.

Operators

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