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
I'm trying to extract data from a query that returns the following lines. I'm using SQLAlchemy, and my model returns this way because I'm doing select(Model) and appending some CTE.
Row: ((Model), int, int, int, bool). To extract the values, I'm using this Pydantic class:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to extract data from a query that returns the following lines. I'm using SQLAlchemy, and my model returns this way because I'm doing
select(Model)
and appending some CTE.Row:
((Model), int, int, int, bool)
. To extract the values, I'm using this Pydantic class:Following this, I got this result:
I would like this result:
Is there a way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions