sql-lint

SQL linter that validates queries and catches database errors early

brewmacoslinux
Try with needOr install directly
Source

About

SQL linter to do sanity checks on your queries and bring errors back from the DB

Commands

sql-lint

Examples

Lint a single SQL file for errors$ sql-lint query.sql
Lint SQL from stdin$ echo 'SELECT * FROM users WHERE id = 1' | sql-lint
Lint multiple SQL files in a directory$ sql-lint *.sql