Is there a function that returns rows as a List<Map<String, dynamic>> ? #127
-
The function mappedResultsQuery returns a
In other languages I usually work with database rows as a dictionary. This translates to a
I find this makes it easier when putting/getting values into/from UI elements. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
https://pub.dev/documentation/postgres/latest/postgres/PostgreSQLExecutionContext/query.html |
Beta Was this translation helpful? Give feedback.
https://pub.dev/documentation/postgres/latest/postgres/PostgreSQLExecutionContext/query.html
the result is a list of rows, which can be accessed by index, and also via a few methods:
https://pub.dev/documentation/postgres/latest/postgres/PostgreSQLResultRow-class.html
https://pub.dev/documentation/postgres/latest/postgres/PostgreSQLResultRow/toColumnMap.html