pg-formatter: PostgreSQL SQL Syntax Beautifier icon

pg-formatter: PostgreSQL SQL Syntax Beautifier

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.

Features

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

Repository Details

80
15
Updated: 11/23/2024

Languages

TypeScript
JavaScript
Shell

Topics

postgresql
pretty

License

Other