{"repo":"apache/casbin-rust-diesel-adapter","free":true,"listed":false,"github":"https://github.com/apache/casbin-rust-diesel-adapter","clone":"git clone https://github.com/apache/casbin-rust-diesel-adapter.git","description":"Diesel adapter for Casbin-RS","language":"Rust","stars":35,"topics":["casbin","adapter","storage-driver","diesel","orm","access-control","authorization","rust","casbin-rs","diesel-adapter"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Diesel Adapter for Casbin-RS (Casbin for Rust) 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: - MySQL - PostgreSQL - SQLite Attention : postgres , mysql , sqlite are mutual exclusive which means that you can only activate one of them. Notice In order to unify the database table name in Casbin ecosystem, we decide to use casbin rule instead of casbin rules from version 0.9.0 . If you are using old version diesel-adapter in your production environment, please use following command and update diesel-adapter version: Install Add it to Cargo.toml Warning : tokio v1.0 or later is supported from diesel-adapter v0.9.0 , we recommend that you upgrade the relevant components to ensure that they work properly. The last version that supports tokio v0.2 is diesel-adapter v0.8.3 , you can choose according to your needs. Configure Configure env Rename sample.env to .env and put DATABASE URL , POOL SIZE inside Or you can export DATABASE URL , POOL SIZE Example Sharing an existing connection pool DieselAdapter::new creates its own r2d2 pool. If your application already has one, use DieselAdapter::with pool instead so Casbin reuses your connections rather than opening a second pool: ConnectionPool is an alias for Pool , where Connection resolves to PgConnection , MysqlConnection or SqliteConnection depending on the enabled feature. diesel is ","default_branch":null,"files":null,"tree":[],"storefront":"/r/apache","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apache/casbin-rust-diesel-adapter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}