Releases: heptau/pg_procrustes
Releases Β· heptau/pg_procrustes
Release list
pg_procrustes v0.2.0
Added
exceptionslist on all casing sections (reserved_keywords,keywords,data_types,literals,operators,schemas,tables,functions,conditional_functions,system_functions,aliases,columns,plpgsql_variables,plpgsql_keywords) β individual identifiers can be pinned to a specific case regardless of the section settingoperator_spacing: compactβ removes all spaces around symbolic operators (=,!=,<>,<,>,<=,>=,||); complements the existingnormalizeoptioncomma_spacing: compactβ removes all spaces around commas; complementsnormalizelayout.content.first_itemβ new orthogonal setting controlling where the first item lands when content breaks (break= new indented line,inline= keyword line); replaces the formerfirst_inlinebreak mode--backupCLI flag β saves the original file with a given extension before overwriting in-place (-w)--out-dirCLI flag β writes formatted files into a target directory instead of stdout
Changed
layout.content.break: first_inlineremoved; replaced bylayout.content.first_item: inlinecombined with any non-preserve break mode β existing configs usingfirst_inlinemust be migrated
Fixed
- Dollar-quoted blank line handling: blank line rules now apply only inside function bodies (after
ASorDO), not to every$$-delimited string order_asc: addscanned past a semicolon into the next statement's SELECT list and inserted spurious ASC keywords therecast_style: operatoremitted a double space when a CAST expression immediately followed a symbolic operator such as||layout.union.blank_linesplitUNION ALLonto two lines because the keyword length was tracked as 1 (onlyUNION), leavingALLas clause contentlayout.union.blank_linedid not emit the configured blank line when no tokens appeared between aUNION ALLand the followingSELECT