Specifying a custom (Realdict) cursor for queries using SQLAlchemy
Is it possible to specify a different cursor when executing queries through SQLAlchemy.
I want to use a cursor Realdict
(as mentioned in this article: http://alexharvey.eu/database/postgresql/postgresql-query-result-as-python-dictionary/ ) using SQLAlchemy
This is a sample code for executing a request:
with connection:
result = connection.execute(select(columns_to_select).where(clause))
row = result.fetchone()
+3
source to share
No one has answered this question yet
Check out similar questions: