Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sqlfmt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlfmt

An uncompromising SQL query formatter.

  • 0.0.3
  • PyPI
  • Socket score

Maintainers
1

SQLFMT

SQLFMT - An uncompromising SQL query formatter.

PyPI Latest Release Package Status Code style: black Imports: isort

SQLFMT is an uncompromising SQL query formatter, which provides one and only one way to format the SQL query. Our goal is to make code reviews faster by producing the smallest diffs possible. You will save time and mental energy on more important matters.

Please note this project is still in the planning stage and everything may be changed in the future.

How to install SQLFMT?

You can install SQLFMT from Python Package Index:

pip install sqlfmt

How to use SQLFMT?

Given a SQL file, you can simply use the following command to format it:

sqlfmt path/to/file.sql

You can install completion for a specfic shell:

sqlfmt --install-completion bash

You can also run the following command to find more other options:

sqlfmt --help

How does SQLFMT work?

It formats your SQL code in place.

For example, if you have a file containing the following SQL code:

SeLEct  1, blah as  fOO  from myTable

after running SQLFMT, the content of that file will become:

SELECT
  1,
  blah AS foo
FROM mytable

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc