You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are some constructs that are currently not handled by the pretty printer (they are displayed on a single line). I'm opening this to serve as a tracking issue to track implementation of these.
Format INSERT INTO with both VALUES and SELECT forms
Support UPDATE and DELETE with proper clause indentation
indent CREATE TABLE column definitions and constraints
Format CREATE VIEW and nested SELECT cleanly
Handle CREATE FUNCTION/PROCEDURE blocks with inner SQL formatting
format json_table and xmltable
Format BEGIN, COMMIT, ROLLBACK blocks clearly
Support control flow structures (IF, WHILE, LOOP) with block indentation
support multiline strings (the indentation should not be reflected inside the string)
Handle MERGE statements with WHEN MATCHED and WHEN NOT MATCHED branches
format CREATE INDEX with minimal structure
Handle EXPLAIN, EXPLAIN ANALYZE, and DESCRIBE statements
This is a followup on #1847
Here are some constructs that are currently not handled by the pretty printer (they are displayed on a single line). I'm opening this to serve as a tracking issue to track implementation of these.
INSERT INTOwith bothVALUESandSELECTformsUPDATEandDELETEwith proper clause indentationCREATE TABLEcolumn definitions and constraintsCREATE VIEWand nestedSELECTcleanlyCREATE FUNCTION/PROCEDUREblocks with inner SQL formattingjson_tableandxmltableBEGIN,COMMIT,ROLLBACKblocks clearlyIF,WHILE,LOOP) with block indentationMERGEstatements withWHEN MATCHEDandWHEN NOT MATCHEDbranchesCREATE INDEXwith minimal structureEXPLAIN,EXPLAIN ANALYZE, andDESCRIBEstatementscc @alamb