We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d26b2f commit 6ea7784Copy full SHA for 6ea7784
package.json
@@ -4,6 +4,7 @@
4
"description": "Format whitespace in a SQL query to make it more readable",
5
"license": "MIT",
6
"main": "lib/sqlFormatter.js",
7
+ "types": "src/sqlFormatter.d.ts",
8
"bin": {
9
"sql-formatter": "./bin/sqlfmt.js"
10
},
src/sqlFormatter.d.ts
@@ -0,0 +1,19 @@
1
+export interface FormatOptions {
2
+ language?:
3
+ | 'db2'
+ | 'mariadb'
+ | 'mysql'
+ | 'n1ql'
+ | 'plsql'
+ | 'postgresql'
+ | 'redshift'
+ | 'spark'
11
+ | 'sql'
12
+ | 'tsql';
13
+ params?: { [x: string]: string } | string[];
14
+ indent?: string;
15
+ uppercase?: boolean;
16
+ linesBetweenQueries?: number;
17
+}
18
+
19
+export function format(sql: string, options?: FormatOptions): string;
0 commit comments