queryAsMap method
Future<List<Map<String, dynamic> > >
queryAsMap(
- String fmtString, {
- dynamic substitutionValues = const <String, dynamic>{},
- bool? allowReuse,
- int? timeoutInSeconds,
- 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();
}