queryAsMap method

  1. @override
Future<List<Map<String, dynamic>>> queryAsMap(
  1. String fmtString, {
  2. dynamic substitutionValues = const <String, dynamic>{},
  3. bool? allowReuse,
  4. int? timeoutInSeconds,
  5. PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign,
})
inherited

Executes a query on this connection and returns each row as a Map.

Implementation

@override
Future<List<Map<String, dynamic>>> queryAsMap(
  String fmtString, {
  dynamic substitutionValues = const <String, dynamic>{},
  bool? allowReuse,
  int? timeoutInSeconds,
  PlaceholderIdentifier placeholderIdentifier = PlaceholderIdentifier.atSign,
}) async {
  final rs = await query(fmtString,
      substitutionValues: substitutionValues,
      allowReuse: allowReuse ?? false,
      timeoutInSeconds: timeoutInSeconds,
      placeholderIdentifier: placeholderIdentifier);

  return rs.map((row) => row.toColumnMap()).toList();
}