select method

Future<List<T>> select({
  1. ConditionQuery where(
    1. T e
    )?,
  2. List<FieldOrder> orderBy(
    1. T e
    )?,
  3. int? offset,
  4. int? limit,
  5. List<FieldWithValue> desiredFields(
    1. 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;
}