Quickstart
After installing, point banshee at a file, a directory
(walked for *.sql), or stdin (-).
Format
Section titled “Format”echo "select id,name from users where active=true" | banshee format - SELECT id, name FROM users WHERE active = trueUse banshee format --write . to rewrite files in place, or --check (exit code
1 if anything is unformatted) in CI.
echo "select * from a, b" | banshee lint -warning[AM04]: Avoid SELECT *; list columns explicitlywarning[AM05]: Implicit cross join; use an explicit JOIN clausebanshee fix applies every available autofix; banshee explain AM04 prints the
rationale and a before/after example. Browse every rule in the
rule reference.
Exit codes
Section titled “Exit codes”0 clean · 1 findings or unformatted input · 2 error. That is the CI
contract — see CI integration.