SQL Formatter is a JavaScript library for pretty-printing SQL queries. It started as a port of a PHP Library, but has since considerably diverged. It supports various SQL dialects: GCP BigQuery, IBM DB2, Apache Hive, MariaDB, MySQL, Couchbase N1QL, Oracle PL/SQL, PostgreSQL, Amazon Redshift, SingleStoreDB, Snowflake, Spark, SQL Server Transact-SQL, Trino/Presto. See language option docs for more details. The CLI tool will be installed under sql-formatter and may be invoked via npx sql-formatter. If you don't use a module bundler, clone the repository, run npm install and grab a file from /dist directory to use inside a script tag. This makes SQL Formatter available as a global variable window.sqlFormatter.
Features
- It started as a port of a PHP Library, but has since considerably diverged
- SQL Formatter is a JavaScript library for pretty-printing SQL queries
- It supports various SQL dialects
- Usage as library
- Placeholders replacement
- Usage from command line
Categories
Code FormattersLicense
MIT LicenseFollow SQL Formatter
You Might Also Like
One Platform. Total IT Insight. Start with PRTG Now
Why settle for fragmented monitoring? PRTG consolidates everything - servers, VMs, network devices, cloud services, and more, into one powerful platform. Get real-time status, customizable alerts, and deep analytics to drive smarter decisions. Designed for complex environments, PRTG scales with your needs, supports team collaboration, and helps you prevent outages before they impact users. Take control of your IT landscape and deliver the uptime your business requires.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of SQL Formatter!