Turn a one-line query into something reviewable: clauses on their own lines, joins indented under them, keywords in capitals.
The result appears hereIt reads tokens rather than parsing a grammar, so it works on Postgres, MySQL, SQLite and the rest alike. The trade is that it will not catch a syntax error for you.
Yes. Quoted strings and -- comments are read whole and passed through untouched, so a comma inside a string never becomes a line break.
Capitals mark the structure: clauses, joins and operators. Table and column names keep whatever case you wrote, because those are identifiers and on some servers the case matters.
No. Only whitespace and the case of recognised keywords are touched, and neither changes the plan. Placeholders such as $1, ? or :name pass through as ordinary tokens, so a prepared statement stays prepared.