Not serving all of our needs (i.e. we can’t get it to indent subsequent lines of a multi-line command) but it does its job: https://github.com/sqlfluff/sqlfluff
I used to use emacs, which had a decent PL/SQL mode. But it has been quite a while since I used anything but SQLDeveloper (Oracle) or SQL Server Management Studio, which are pretty hands-off.
5 comments
[ 4.3 ms ] story [ 22.5 ms ] threadGithub: https://github.com/darold/pgFormatter
It's a simple perl script, so very easy to run locally, but there's an online version for those who prefer: https://sqlformat.darold.net