Open
Description
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.
- Format
INSERT INTO
with bothVALUES
andSELECT
forms - Support
UPDATE
andDELETE
with proper clause indentation - indent
CREATE TABLE
column definitions and constraints - Format
CREATE VIEW
and nestedSELECT
cleanly - Handle
CREATE FUNCTION
/PROCEDURE
blocks with inner SQL formatting - format
json_table
andxmltable
- 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 withWHEN MATCHED
andWHEN NOT MATCHED
branches - format
CREATE INDEX
with minimal structure - Handle
EXPLAIN
,EXPLAIN ANALYZE
, andDESCRIBE
statements
cc @alamb
Metadata
Metadata
Assignees
Labels
No labels