You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible in psql to execute multiple commands in a single transaction, returning distinct result sets:
SELECTu.username, ... FROM user u WHEREu.user_id= $1;
SELECTr.rolename, ... FROM role r WHEREr.user_id= $1;
It would be lovely to be able to execute these kinds of queries in Npgsql.FSharp and retain the ability to use the analyzer, etc to maintain compatibility.
Logically, the data reader returned from such queries has embedded 'stop' points between the result sets of such queries, so it's possible to detect and use different mappers for each result set (here's a simple logical example for two queries in the result set):
Hi @baronfel, I somehow missed this issue 😓 sorry for the late reply! This is an interesting problem and the challenge really lies in making an API that can be analyzed and then actually analyzing each result. Initial thoughts are
It's possible in psql to execute multiple commands in a single transaction, returning distinct result sets:
It would be lovely to be able to execute these kinds of queries in
Npgsql.FSharp
and retain the ability to use the analyzer, etc to maintain compatibility.Logically, the data reader returned from such queries has embedded 'stop' points between the result sets of such queries, so it's possible to detect and use different mappers for each result set (here's a simple logical example for two queries in the result set):
Is such a thing possible and/or easy in the current design?
The text was updated successfully, but these errors were encountered: