casbin-rs / sqlx-adapter

Asynchronous casbin adapter for mysql, postgres, sqlite based on sqlx-rs
https://github.com/casbin/casbin-rs
Apache License 2.0
50 stars 23 forks source link

rename unique constraint name #6

Closed GopherJ closed 4 years ago

GopherJ commented 4 years ago

It seems sometimes diesel-adapter and sqlx-adapter can have problem of duplicated constraint name,

https://github.com/casbin-rs/sqlx-adapter/blob/b8739844129df6286f4d808a572140e8b4c3491c/src/actions.rs#L26

I'll rename unique_key to unique_key_diesel_adapter, could you rename unique_key to unique_key_sqlx_adapter?

hackerchai commented 4 years ago

Ger it. I will fix in next push

GopherJ commented 4 years ago

Seems this error is more because in diesel-adapter has two async tests which execute at the same time

But yes this can be renamed