I am looking for an SQL validator / Syntax Checker which can be executed via CLI.

Must-haves:

* Be able to check an SQL command for errors and return the error(s) if any
* [gratis](/questions/tagged/gratis "show questions tagged 'gratis'")
* Executable on [ubuntu](/questions/tagged/ubuntu "show questions tagged 'ubuntu'") (locally, no web connection)

Nice to have:

* [open-source](/questions/tagged/open-source "show questions tagged 'open-source'")
* Python interface, e.g. having a python function which can lint an SQL string
* Allow different SQL dialects
* Active developers