sea-orm-adapter
Sea ORM Adapter is the Sea ORM adapter for Casbin-rs. With this library, Casbin can load policy from Sea ORM supported database or save policy to it with fully asynchronous support.
Based on Sea ORM, The current supported databases are:
Install
Add it to Cargo.toml
= { = "1.24.1", = ["full"] }
= { = "0.10.6" }
= { = "0.1.0", = ["mysql", "runtime-tokio-rustls"] }
Example
use ;
use Database;
use SeaOrmAdapter;
async