Support for linting queries
Linting queries would be a great feature for ensuring quality of queries (for example, discouraging equality check with null).
Creating a general linter would be a very tall order. There are existing tools like sqlfluff. If we could at compile time, and convert the query into something we could pass into sqlfluff, then we could give lint warnings at compile time.
I'd like to make this feature request for now. I'll be more free in a couple weeks to hash out what the warnings should look like and play around with getting this implemented.
Did you make any progress with this? Using sqlfluff to lint sqlx queries would be very cool.
I've added sqruff support for sqlx via a dylint lint: cargo-sqruff