Compatibility Issue with asyncpg 0.30.0 in Gino 1.0.1
维护者通常 1 天内回复
@fantix 已经在做这个了。
开始于 2025年11月24日。
评估
这个 Issue 还没有评估数据。
描述
- asyncpg version: 0.30.0
- PostgreSQL version: 16.1
- Do you use a PostgreSQL SaaS? If so, which? Can you reproduce
the issue with a local PostgreSQL install?: No - Python version: 3.13
- Platform: MacOS
- Do you use pgbouncer?: No
- Did you install asyncpg with pip?: Yes
- If you built asyncpg locally, which version of Cython did you use?:
- Can the issue be reproduced under both asyncio and
uvloop?: Yes
Hi there! I am using gino 1.0.1 and unfortunately, this project is no longer being updated. For migrating to Python 3.13 I install asyncpg 0.30.0 and found, that gino (await Model.insert().gino.all([{...}, {...}])] can't work with current version. Issue occurs when calling bind_execute_many Gino expects 4 arguments, but in version 0.30.0, a new argument return_rows was added.
How to gino using asyncpg:
def executor(state, timeout_):
if many:
return _protocol.bind_execute_many(state, args, "", timeout_)
else:
return _protocol.bind_execute(state, args, "", limit, True, timeout_)
My suggestion: add True as the default value for the return_rows argument:
async def bind_execute_many(
self,
state: PreparedStatementState,
args,
portal_name: str,
timeout,
return_rows: bool = True,
)
- 主要语言
- Python
- 星标
- 8.1k
- 派生
- 474
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 24
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MagicStack/asyncpg 的其他 Issue
-
Failed BEGIN leaves Connection._top_xact set; every later transaction becomes a SAVEPOINT and fails with NoActiveSQLTransactionError可能已有人在做 @devtechedge 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
MagicStack/asyncpg#1386 ·
维护者通常 1 天内回复
-
Connect call failed error doesn't distinguish port mismatch from "server not running"可能已有人在做 @aryansk 于 53 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
MagicStack/asyncpg#1342 ·
维护者通常 1 天内回复
-
TypeError in asyncpg.connect() for specific parameters when values are not str enough可能已有人在做 @pranjalm37 于 56 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 56/100
MagicStack/asyncpg#1340 · 1 条评论 ·
维护者通常 1 天内回复
-
setup.py relies on deprecated pkg_resources可能已有人在做 @jasonwbarnett 于 84 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 28/100
MagicStack/asyncpg#1337 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 42/100
MagicStack/asyncpg#1330 · 1 条评论 ·
维护者通常 1 天内回复
查看 MagicStack/asyncpg 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 85/100
epam/ai-dial-quickapps-backend#628 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 69/100
timqian/chinese-independent-blogs#2235 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
eclipse-score/coverage_tool#27 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
bojieli/ai-agent-book#1174 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
RedHatQE/mtv-api-tests#721 ·
维护者通常 1 天内回复