![](/img/trans.png)
[英]How to add a cursor() of a db connection to a sqlalchemy.orm session? "sqlalchemy.orm.exc.UnmappedInstanceError: Class 'builtins.int' is not mapped"
我在帶有Python 3.10的Ubuntu 22.04 Docker 容器中。 我使用這些 apt 包: 我使用以下 Python 包: sessionmaker參數autoflush設置為 True。 我想添加一個刪除,然后插入到 sqlalchemy.orm session 以便我只在兩個 ...