Query<T> class

Constructors

Query([dynamic tableNameOrModelClass])

Properties

columns ↔ List<String>
getter/setter pair
container ↔ Application
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
limit ↔ int?
getter/setter pair
offset ↔ int?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
table ↔ String
getter/setter pair
wheres ↔ List<Where>
getter/setter pair

Methods

add(Where where) → Query<T>
all() → Future<List<T>>
and(Where where) → Query<T>
count() → Future<int>
delete() → Future<int>
find(dynamic value) → Future<T>
findBy(dynamic column, dynamic value) → Future<T>
findByOrNull(dynamic column, dynamic value) → Future<T?>
findOrNull(dynamic value) → Future<T?>
first() → Future<T>
firstOrNull() → Future<T?>
get() → Future<List<T>>
getOrderBy() → dynamic
insert(Map<String, dynamic> row) → Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
or(Where where) → Query<T>
orderBy(String column, [String direction = 'asc']) → Query<T>
orWhere(String column) → Where
paginate({int page = 1, int perPage = 10}) → Paginator<T>
select(List<String> columns) → Query<T>
toSql() → String
toString() → String
A string representation of this object.
inherited
update(Map<String, dynamic> row) → Future<int>
where(String column) → Where
whereMap(Map<String, dynamic> map) → Query<T>

Operators

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