QueryMethod<T> class
abstract
- Implemented types
-
- RelationMethod<
T> - ReaderMethod<
T> - CalculationMethod<
T> - QueryableReturn<
T>
- RelationMethod<
- Implementers
Constructors
Properties
-
all
→ Future<
List< T> > -
alias for toList
no setterinherited
-
first
→ Future<
T> -
first gets the first entry on database
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ids
→ Future<
List> -
ids gets id list of a table
no setterinherited
-
last
→ Future<
T> -
last gets the last entry on database
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
average(
String column) → Future< double?> -
average average of a num column
inherited
-
count(
[String column = '*']) → Future< int?> -
count count of all num column
inherited
-
distinct(
[bool value = true]) → QueryMethod< T> - distinct method
-
find(
dynamic id) → Future< T> -
find gets an entry based by id
inherited
-
findBy(
Map< String, dynamic> args) → Future<T> -
findBy looks for an entry based on map
inherited
-
group(
List< String> args) → QueryMethod<T> - group method
-
having(
String args) → QueryMethod< T> - having method
-
includes(
List< Type> args) → QueryMethod<T> - includes method
-
isExists(
Map< String, dynamic> args) → Future<bool> -
isExists checks if arg exist
inherited
-
joins(
List< Type> args) → QueryMethod<T> - joins method
-
limit(
int value) → QueryMethod< T> - limit method
-
maximum(
String column) → Future -
maximum gets maximum value of a num column in table
inherited
-
minimum(
String column) → Future -
minimum gets minimum value of a num column in table
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
not(
Map< String, dynamic> args) → QueryMethod<T> - not method
-
offset(
int value) → QueryMethod< T> - offset method
-
or(
Map< String, dynamic> args) → QueryMethod<T> - or method
-
order(
List< String> args, String type) → QueryMethod<T> - order method
-
pick(
List< String> columns) → Future<List> -
pick pick
inherited
-
pluck(
List< String> columns) → Future<List> -
pluck pluck
inherited
-
select(
List< String> args) → QueryMethod<T> - select method
-
sum(
String column) → Future< int?> -
sum gets sum value of a num column in table
inherited
-
take(
[int limit = 1]) → Future< List< T> > -
take limits result based on passed int value
inherited
-
toList(
) → Future< List< T> > -
toList returns items list
inherited
-
toMap(
) → Future< List< Map< >String?, dynamic> > -
toMap returns a map
inherited
-
toSql(
) → String -
toSql gets the sequel value of a query
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateAll(
Map< String, dynamic> args) → Future -
updateAll updates all entries in a DB based on a map
inherited
-
where(
Map< String, dynamic> args) → QueryMethod<T> - where method
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited