sqlify

A CLI tool to format your SQL code.

Features

This tool utilizes sqlformat under the hood to format the given SQL code.

Installation

To install sqlify simply run the cargo install command:

sh cargo install sqlify

Usage

To use it simply pass in your SQL as the argument, or pipe it from a file, like this:

```sh sqlify "SELECT * FROM tablename"

or

cat query.sql | sqlify

or

sqlify < query.sql ```

where query.sql looks like

sql SELECT * FROM tablename

to get the following output:

sql SELECT * FROM tablename

There are fomrating options from sqlformat exposed through arguments: