postgresql-dart
postgresql-dart copied to clipboard
Can you make new one method like just return "List<map<String,object>>" without table name
First of all, thank you for making such a nice package.
There is one thing that is too inconvenient while using it, so I would like to ask for improvement.
I usually prefer the List<map<String,object>> form when making queries, but in the case of this package, the table name is attached in front of it, so it is inconvenient to have to parse everything.
With respect to mappedResultsQuery
We ask if there is a way to get only the returned column row in the form of List<map<String,object>> without getting the table name from the method.
@ItdaTeam:
- You may want to send the PR to isoos/postgresql-dart
- When using query the response object rows have two methods:
toTableColumnMap
(the one you seem to be referring to) andtoColumnMap
the one you seem to require. See: https://pub.dev/documentation/postgres/latest/postgres/PostgreSQLResultRow/toColumnMap.html - I don't think we need yet another top-level query method to do the mapping, it can be done post-query...