diesel-adapter
An adapter designed to work with casbin-rs.
Install
Add it to Cargo.toml
diesel_adapter = { version = "0.1.0", features = ["postgres"] }
Example
extern crate casbin;
extern crate diesel_adapter;
use ;
use ;
let mut m = new;
m.load_model;
let mut conn_opts = default;
conn_opts.set_auth;
let adapter = new;
let mut e = new;
Features
postgresmysql
Attention: postgres and mysql are mutual exclusive which means that you can only activate one of them. Currently we don't have support for sqlite, it may be added in the near future.