Python 使用SQLAlchemy为查询指定自定义(Realdict)游标
在通过SQLAlchemy执行查询时,是否可以指定不同的游标。Python 使用SQLAlchemy为查询指定自定义(Realdict)游标,python,postgresql,sqlalchemy,cursor,Python,Postgresql,Sqlalchemy,Cursor,在通过SQLAlchemy执行查询时,是否可以指定不同的游标。 我希望能够将Realdictcursor(如本文所述:)与SQLAlchemy一起使用 这是如何执行查询的示例代码: with connection: result = connection.execute(select(columns_to_select).where(clause)) row = result.fetchone()
我希望能够将
Realdict
cursor(如本文所述:)与SQLAlchemy一起使用
这是如何执行查询的示例代码:
with connection:
result = connection.execute(select(columns_to_select).where(clause))
row = result.fetchone()