pycasbin / async-sqlalchemy-adapter

Async SQLAlchemy Adapter for PyCasbin
https://github.com/casbin/pycasbin
Apache License 2.0
7 stars 6 forks source link

Errors Caused by the Deprecated Query API with Sqlalchemy 2.0 and Async #8

Closed ChenHaolinOlym closed 1 year ago

ChenHaolinOlym commented 1 year ago

When using sqlalchemy 2.0 with the async adapter, I'm getting AttributeError: 'AsyncSession' object has no attribute 'query' because the not supported session.query

Do you have any plans to upgrade the code to Sqlalchemy 2.0 style so that 2.0 with async is supported?

casbin-bot commented 1 year ago

@techoner @Nekotoxin

hsluoyz commented 1 year ago

@BustDot

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: