03. Output Result¶
Overview¶
sqlalchemy provides following method:
-
fetchallmethod to retrieve all the rows of a query result. -
fetchonemethod to retrieve one row of a query result. -
all -
first
Each method has a different mangeed output
How to returned a dict:
https://riptutorial.com/sqlalchemy/example/6614/converting-a-query-result-to-dict