PostgreSQL-specific syntax this formatter understands
::type casts and$1positional parameters stay intact- JSON operators
->,->>,?and@>are kept as single tokens - Dollar-quoted function bodies (
$$ … $$) are not broken apart RETURNING,ON CONFLICT … DO UPDATEandUSINGare laid out as clauses
Formatting changes only whitespace and keyword case. What the query does is unchanged. Need another database? The main SQL formatter has 11 dialects, and the SQL minifier squeezes a query onto one line.