darold / pgFormatter

A PostgreSQL SQL syntax beautifier that can work as a console program or as a CGI. On-line demo site at http://sqlformat.darold.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace Redshift option with generalised option for multiple extra keyword types

darkixion opened this issue · comments

At the moment, there is a specific option for adding Redshift keywords, but I think this may perhaps become more flexible if it were generalised. For example, EDB Advanced Server uses some syntax not supported by community Postgres, so (just as an example), it would be nice to have:

-K redshift
or
-K epas

Perhaps even allow specification of a custom keywords file (am I over-engineering here?), where you could specify:

--extra-keywords timescaledb.keywords

Sorry for the response delay Thom and thanks for the feature request, commit 72993a7 adds this feature with new option --extra-keyword.