casbin-rs / sqlx-adapter

Asynchronous casbin adapter for mysql, postgres, sqlite based on sqlx-rs

Home Page:https://github.com/casbin/casbin-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic sqlx compile support

hackerchai opened this issue · comments

When we use CI/CD, we have to set up database and create tables in order to build the adapter. Also when developers use sqlx-adapter, they don't need to verify the SQL syntax. I think we should add dynamic compile feature to avoid compile-time SQL verify.

@GopherJ @xcaptain see launchbadge/sqlx#60
There is a WIP feature which support disabling query typechecking. Maybe we can use this rather than writing proc-macro.

@hsluoyz Already solved. See #39

OK.