cli-sql-formatter
A command line interface to sql-formatter
Last updated 7 months ago by kufii .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cli-sql-formatter 
SYNC missed versions from official npm registry.

cli-sql-formatter

A console interface for sql-formatter-plus

Installation

This tool can be installed via npm

npm install -g cli-sql-formatter

Usage

$ cli-sql-formatter -h
Usage: cli-sql-formatter [options]

Options:

  -v, --version            output the version number
  -f, --file <file>        load SQL from a file
  -o, --out <file>         output results to a file
  -d, --dialect <dialect>  which dialect to format with (sql: Standard SQL, n1ql: Couchbase N1QL, db2: IBM DB2, pl/sql: Oracle PL/SQL) (default: sql)
  -i, --indent <n>         number of spaces to indent with (default: 2)
  -t, --tab                indent with tabs
  -u, --uppercase          convert keywords to uppercase
  -n, --linebreaks         number of line breaks to insert between queries
  -h, --help               output usage information

$ echo "SELECT * FROM table WHERE n = 1" | cli-sql-formatter
SELECT
  *
FROM
  table
WHERE
  n = 1

Current Tags

  • 1.3.4                                ...           latest (7 months ago)

19 Versions

  • 1.3.4                                ...           7 months ago
  • 1.3.3                                ...           7 months ago
  • 1.3.2                                ...           7 months ago
  • 1.3.1                                ...           7 months ago
  • 1.3.0                                ...           7 months ago
  • 1.2.0                                ...           8 months ago
  • 1.1.4                                ...           8 months ago
  • 1.1.3                                ...           8 months ago
  • 1.1.2                                ...           8 months ago
  • 1.1.1                                ...           8 months ago
  • 1.1.0                                ...           8 months ago
  • 1.0.7                                ...           9 months ago
  • 1.0.6                                ...           10 months ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |