You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+11-2
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,25 @@ Based on [Diesel](https://github.com/diesel-rs/diesel), The current supported da
11
11
12
12
-[Mysql](https://www.mysql.com/)
13
13
-[Postgres](https://github.com/lib/pq)
14
+
-[SQLite](https://www.sqlite.org)
14
15
16
+
## Notice
17
+
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:
18
+
19
+
````SQL
20
+
# MySQL & PostgreSQL & SQLite
21
+
ALTERTABLE casbin_rules RENAME TO casbin_rule;
22
+
````
15
23
16
24
## Install
17
25
18
26
Add it to `Cargo.toml`
19
27
20
28
```
21
-
diesel-adapter = { version = "0.8.3", features = ["postgres"] }
22
-
async-std = "1.8.0"
29
+
diesel-adapter = { version = "0.9.0", features = ["postgres"] }
30
+
tokio = "1.1.1"
23
31
```
32
+
**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.
0 commit comments