QueryBuilder class
Query builder for constructing database queries
Constructors
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
-
build(
) → Map< String, dynamic> - Builds the query
-
limit(
int value) → QueryBuilder - Sets the limit
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
orderBy(
String field, {SortOrder order = SortOrder.asc}) → QueryBuilder - Adds sorting
-
select(
List< String> fields) → QueryBuilder - Sets the fields to return
-
skip(
int value) → QueryBuilder - Sets the skip
-
toString(
) → String -
A string representation of this object.
inherited
-
where(
String field, dynamic value) → QueryBuilder - Adds an equality filter
-
whereGt(
String field, dynamic value) → QueryBuilder - Adds a comparison filter
-
whereGte(
String field, dynamic value) → QueryBuilder - Adds a comparison filter
-
whereIn(
String field, List values) → QueryBuilder - Adds an in filter
-
whereLt(
String field, dynamic value) → QueryBuilder - Adds a comparison filter
-
whereLte(
String field, dynamic value) → QueryBuilder - Adds a comparison filter
-
whereRegex(
String field, String pattern) → QueryBuilder - Adds a regex filter
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited