fetchCol<T> method

Future<List<T>> fetchCol<T>(
  1. String sql, [
  2. List<Object?>? values
])

Implementation

Future<List<T>> fetchCol<T>(String sql, [List<Object?>? values]) async {
  counter++;
  List<T> ret = [];
  for (var row in (await _prepareAndExecute(sql, values)).rows) {
    ret.add(row.typedColAt<T>(0)!);
  }
  return ret;
}