Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用SQLAlchemy为查询指定自定义(Realdict)游标_Python_Postgresql_Sqlalchemy_Cursor - Fatal编程技术网

Python 使用SQLAlchemy为查询指定自定义(Realdict)游标

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()

在通过SQLAlchemy执行查询时,是否可以指定不同的游标。
我希望能够将
Realdict
cursor(如本文所述:)与SQLAlchemy一起使用

这是如何执行查询的示例代码:

with connection:
             result = connection.execute(select(columns_to_select).where(clause))
             row = result.fetchone()