2

包文档https://magicstack.github.io/asyncpg/current/api/index.html#prepared-statements

唯一的协程似乎是用准备好的语句处理 SELECT 查询。文档列表cursor, explain, fetch, fetchrow, fetchval. asyncpg是否支持准备好的 INSERT 语句似乎并不明显。我尝试stmt.execute(...)猜测,确实该PreparedStatement对象没有属性execute

4

0 回答 0