select method
Future<List<T> >
select({
- ConditionQuery where(
- T e
- List<
FieldOrder> orderBy(- T e
- int? offset,
- int? limit,
- List<
FieldWithValue> desiredFields(- T e
Get entries
from the table.
Implementation
Future<List<T>> select(
{ConditionQuery Function(T e)? where,
List<FieldOrder> Function(T e)? orderBy,
int? offset,
int? limit,
List<FieldWithValue> Function(T e)? desiredFields}) async {
List<T> result = [];
for (var r in await query(
queries: desiredFields,
where: where,
orderBy: orderBy,
offset: offset,
limit: limit)) {
T entry = _entryFromMap(r);
result.add(entry);
}
return result;
}