Skip to content

Commit a05568d

Browse files
committed
Drop pl/sql alias in favor of plsql
1 parent a57a795 commit a05568d

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SQL formatter supports the following dialects:
1010
- **mysql** - [MySQL][]
1111
- **postgresql** - [PostgreSQL][]
1212
- **db2** - [IBM DB2][]
13-
- **pl/sql** - [Oracle PL/SQL][]
13+
- **plsql** - [Oracle PL/SQL][]
1414
- **n1ql** - [Couchbase N1QL][]
1515
- **redshift** - [Amazon Redshift][]
1616
- **spark** - [Spark][]
@@ -94,7 +94,7 @@ sql-formatter -h
9494
```
9595

9696
```
97-
usage: sql-formatter [-h] [-o OUTPUT] [-l {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql,tsql}]
97+
usage: sql-formatter [-h] [-o OUTPUT] [-l {db2,mariadb,mysql,n1ql,plsql,postgresql,redshift,spark,sql,tsql}]
9898
[-i N | -t] [-u] [--lines-between-queries N] [--version] [FILE]
9999
100100
SQL Formatter
@@ -106,8 +106,8 @@ optional arguments:
106106
-h, --help show this help message and exit
107107
-o OUTPUT, --output OUTPUT
108108
File to write SQL output (defaults to stdout)
109-
-l {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql,tsql},
110-
--language {db2,mariadb,mysql,n1ql,pl/sql,plsql,postgresql,redshift,spark,sql,tsql}
109+
-l {db2,mariadb,mysql,n1ql,plsql,postgresql,redshift,spark,sql,tsql},
110+
--language {db2,mariadb,mysql,n1ql,plsql,postgresql,redshift,spark,sql,tsql}
111111
SQL Formatter dialect (defaults to basic sql)
112112
-i N, --indent N Number of spaces to indent query blocks (defaults to 2)
113113
-t, --tab-indent Indent query blocks with tabs instead of spaces

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h1>SQL Formatter</h1>
107107
<option value="mariadb">MariaDB</option>
108108
<option value="mysql">MySQL</option>
109109
<option value="n1ql">N1QL</option>
110-
<option value="pl/sql">PL/SQL</option>
110+
<option value="plsql">PL/SQL</option>
111111
<option value="postgresql">PostgreSQL</option>
112112
<option value="spark">Spark</option>
113113
<option value="tsql">Transact-SQL</option>

src/sqlFormatter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const formatters = {
1414
mariadb: MariaDbFormatter,
1515
mysql: MySqlFormatter,
1616
n1ql: N1qlFormatter,
17-
'pl/sql': PlSqlFormatter,
1817
plsql: PlSqlFormatter,
1918
postgresql: PostgreSqlFormatter,
2019
redshift: RedshiftFormatter,

test/PlSqlFormatterTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import supportsSchema from './features/schema';
1212
import supportsStrings from './features/strings';
1313

1414
describe('PlSqlFormatter', () => {
15-
const format = (query, cfg = {}) => sqlFormatter.format(query, { ...cfg, language: 'pl/sql' });
15+
const format = (query, cfg = {}) => sqlFormatter.format(query, { ...cfg, language: 'plsql' });
1616

1717
behavesLikeSqlFormatter(format);
1818
supportsCase(format);

0 commit comments

Comments
 (0)