pycasbin / async-sqlalchemy-adapter

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

feat: Update adapter to support sqlalchemy 2.0 syntax #9

Closed ChenHaolinOlym closed 1 year ago

ChenHaolinOlym commented 1 year ago

fix #8

  1. Update adapter to sqlalchemy 2.0 syntax
  2. Update tests. The original tests use apis from model rather than directly from enforcer, which may not go through the adapter. The new tests are a modify version from the current sqlalchemy-adapter with async modifications.
  3. Fix some incorrect type hints
  4. Since update_filtered_policies are not implemented in the current version of asynccasbin, the corresponding parts are not tested and corresponding tests are skiped.
casbin-bot commented 1 year ago

@Nekotoxin please review

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: