docs.rs failed to build sqlx-adapter-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
sqlx-adapter-1.2.0
sqlx-adapter
An adapter designed to work with casbin-rs which is fully asynchronous
.
Install
Add it to Cargo.toml
casbin = { version = "0.4.3" }
sqlx-adapter = { version = "0.1.0", features = ["postgres"] }
async-std = "1.5.0"
Configure
Rename sample.env
to env
DATABASE_URL=postgres://casbin_rs:casbin_rs@localhost:5432/casbin
POOL_SIZE=8
Example
use *;
use SqlxAdapter;
async
Features
postgres
mysql
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.