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

sql-formatter

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-formatter - npm Package Compare versions

Comparing version 4.0.0-beta.5 to 4.0.0-beta.6

@@ -61,3 +61,3 @@ "use strict";

"''": "(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",
"N''": "((N'[^N'\\\\]*(?:\\\\.[^N'\\\\]*)*('|$))+)",
"N''": "((N'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",
"U&''": "((U&'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",

@@ -64,0 +64,0 @@ 'U&""': '((U&"[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',

@@ -26,2 +26,4 @@ "use strict";

var _TSqlFormatter = _interopRequireDefault(require("./languages/TSqlFormatter"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -41,3 +43,4 @@

spark: _SparkSqlFormatter["default"],
sql: _StandardSqlFormatter["default"]
sql: _StandardSqlFormatter["default"],
tsql: _TSqlFormatter["default"]
};

@@ -44,0 +47,0 @@ /**

{
"name": "sql-formatter",
"version": "4.0.0-beta.5",
"version": "4.0.0-beta.6",
"description": "Format whitespace in a SQL query to make it more readable",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -17,2 +17,3 @@ # SQL Formatter [![NPM version](https://img.shields.io/npm/v/sql-formatter.svg)](https://npmjs.com/package/sql-formatter) [![Build Status](https://travis-ci.org/zeroturnaround/sql-formatter.svg?branch=master)](https://travis-ci.org/zeroturnaround/sql-formatter) [![Coverage Status](https://coveralls.io/repos/github/zeroturnaround/sql-formatter/badge.svg?branch=master)](https://coveralls.io/github/zeroturnaround/sql-formatter?branch=master)

- **spark** - [Spark][]
- **tsql** - [SQL Server Transact-SQL][tsql]

@@ -97,3 +98,3 @@ It does not support:

```
usage: sql-formatter [-h] [-o OUTPUT] [-l {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql}]
usage: sql-formatter [-h] [-o OUTPUT] [-l {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql,tsql}]
[-i N | -t] [-u] [--lines-between-queries N] [--version] [FILE]

@@ -110,4 +111,4 @@

File to write SQL output (defaults to stdout)
-l {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql},
--language {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql}
-l {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql,tsql},
--language {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql,tsql}
SQL Formatter dialect (defaults to basic sql)

@@ -167,1 +168,2 @@ -i N, --indent N Number of spaces to indent query blocks (defaults to 2)

[mysql]: https://www.mysql.com/
[tsql]: https://docs.microsoft.com/en-us/sql/sql-server/

@@ -54,3 +54,3 @@ import { escapeRegExp, isEmpty, sortByLengthDesc } from '../utils';

"''": "(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",
"N''": "((N'[^N'\\\\]*(?:\\\\.[^N'\\\\]*)*('|$))+)",
"N''": "((N'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",
"U&''": "((U&'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",

@@ -57,0 +57,0 @@ 'U&""': '((U&"[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',

@@ -10,2 +10,3 @@ import Db2Formatter from './languages/Db2Formatter';

import StandardSqlFormatter from './languages/StandardSqlFormatter';
import TSqlFormatter from './languages/TSqlFormatter';

@@ -23,2 +24,3 @@ const formatters = {

sql: StandardSqlFormatter,
tsql: TSqlFormatter,
};

@@ -25,0 +27,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet