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
Other Useful Business Software
Peer to Peer Recognition Brings Teams Together
Create a positive and energetic workplace environment with Motivosity, an innovative employee recognition and engagement platform. With Motivosity, employees can give each other small monetary bonuses for doing great things, promoting trust, collaboration, and appreciation in the workplace. The software solution comes with features such as an open-currency open-reward system, insights and analytics, dynamic organization chart, award programs, milestones, and more.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of SQL Formatter!