query method
Future
query({
- List<
QueryPart> queries(- T e
- ConditionQuery where(
- T e
- ConditionQuery having(
- T e
- int? offset,
- int? limit,
- List<
FieldWithValue> groupBy(- T e
- List<
FieldOrder> orderBy(- T e
Query some rows with specified fields from this table.
Implementation
Future query(
{List<QueryPart> Function(T e)? queries,
ConditionQuery Function(T e)? where,
ConditionQuery Function(T e)? having,
int? offset,
int? limit,
List<FieldWithValue> Function(T e)? groupBy,
List<FieldOrder> Function(T e)? orderBy}) async {
List<QueryPart> Function(T a, DbModel? b)? quers;
if (queries != null) {
quers = (a, b) => queries.call(a).map((e) => e).toList();
}
return _query(
queries: quers,
where: where,
offset: offset,
having: having,
limit: limit,
groupBy: groupBy,
orderBy: orderBy);
}