Version 3.4
April 21 2018 - v3.4
This release fixes several issues reported by users since the last
six months and adds lot of improvements in code formatting:
- Add -W, --wrap-after option to set number of column after which
lists must be wrapped. Default is to puts every item on its own
line. - Add 'Wrap after' option to CGI in the indentation section to
support the -W | --wrap_atfer command line option in CGI mode. - Add -w | --wrap-limit command line option to be able to to wrap
queries at a certain length. This option is not available in CGI
mode. - Allow uploaded file content-type to be application/octet-stream.
- Allow a single $ sign in object name.
- Major optimization of function detection, speed difference is 10
time faster. - Better detection of function versus keyword with same name.
- Add WORK, GENERATED and IDENTITY as PostgreSQL keyword.
- Add array_remove and array_replace to the list of PostgreSQL
functions. - Add detection of code separator after DO keyword if it starts
with a dollar sign. - Major optimization of function detection, speed difference is 10
time faster. - Better detection of function versus keyword with same name.
- Add WORK, GENERATED and IDENTITY as PostgreSQL keyword.
- Add array_remove and array_replace to the list of PostgreSQL
functions. - Add detection of code separator after DO keyword if it starts
with a dollar sign. - Add new option -t | --format-type to try another formatting type
for some statements. At this stage it will just use a multi-line
format in POLICY and PUBLICATION statements. It also introduce
newline in parameter function list. - Add formatting of CREATE POLICY statements.
- Add information about (Neo)vim plugin and Visual Studio use of
pgFormatter to format PLPGSQL and SQL code.
For the complete list of changes see: https://github.com/darold/pgFormatter/blob/master/ChangeLog