This is NOT a full SQL-parsing solution: only "coarse" parsing is performed, the minimum necessary for re-formatting. The standard formatter does not always maintain the order of comments in the code; ...
This is an attempt to make a MSSQL's T-SQL to PostgreSQL's PL/pgSQL converter based on Poor Man's T-SQL Formatter. It's using the unchanged parser and slightly changed formatter, as well as adding an ...