包文档https://magicstack.github.io/asyncpg/current/api/index.html#prepared-statements。
唯一的协程似乎是用准备好的语句处理 SELECT 查询。文档列表cursor
, explain
, fetch
, fetchrow
, fetchval
. asyncpg
是否支持准备好的 INSERT 语句似乎并不明显。我尝试stmt.execute(...)
猜测,确实该PreparedStatement
对象没有属性execute
。