pg-formatter is a versatile tool designed to enhance the readability and maintainability of PostgreSQL SQL queries by formatting them according to customizable rules. Serving as a lightweight wrapper for the powerful pgFormatter, it provides users with the ability to anonymize sensitive data, manage indentation styles, and more, ensuring that SQL code adheres to best practices.
Anonymization of literals to protect confidential data
Customizable indentation with options for spaces or tabs
Flexible case formatting for function names and reserved keywords
Automatic handling of commas in insert statements for improved readability
Option to strip comments from SQL code for cleaner output