Closed paulocagol closed 3 years ago
If you use a function, it is no longer a table column, is it? In such cases neither postgresql, nor the client package can now what the origin of the data was (e.g. it could be no table, or multiple tables).
You could also use regular query
, and call the row's toColumnMap
method:
https://pub.dev/documentation/postgres/latest/postgres/PostgreSQLResultRow/toColumnMap.html
It is just a flat map, with the column names as keys.
Okay, I understand the case, I will test alternatives ...
Thank you very much for your punctual reply and sorry for my ignorance.
Hello, thank you very much for the package!
I need help in a situation that involves query and function ...
In this case I have a table with the name "todo" and when I use its columns everything works, however when I use a function in select the name of the table is empty ...
Example below.
Funcion:
Select:
Dart code:
Return in results:
If I use the column itself Select:
Dart code:
Return in results:
It's OK
I am in doubt if there is any correct way to use function in select query ...
I thank you for your attention.
I believe that I can simulate this case with any type of function in the select...