'AsyncAdapt_asyncpg_cursor' object has no attribute 'lastrowid'
dongfengweixiao opened this issue · comments
Dee commented
AmisAdmin commented
- postgresql不支持插入的时候获取
lastrowid
, 版本v0.0.21已将此属性默认值None
. - sqlalchemy有一个
inserted_primary_key
属性, 但是我尝试没有成功, 如果需要插入数据的时候返回id,你可以研究一下这个属性的用法,提供更好的解决方案.
Dee commented
版本v0.0.21已修复.