diesel-adapter
Diesel Adapter is the Diesel adapter for Casbin-rs. With this library, Casbin can load policy from Diesel supported database or save policy to it.
Based on Diesel, The current supported databases are:
Install
Add it to Cargo.toml
diesel-adapter = { version = "0.8.3", features = ["postgres"] }
async-std = "1.8.0"
Example
use *;
use DieselAdapter;
async
Features
postgresmysqlsqlite
Attention: postgres, mysql, sqlite are mutual exclusive which means that you can only activate one of them.