Skip to content

Commit

Permalink
[add] referrence sql-formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ko-ya346 committed Feb 6, 2024
1 parent dcbb8cf commit 2f64bb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/app/lib/queryFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ interface QueryFormatterMap {
[syntax: string]: (queryText: string) => string;
}

// sql-formatter referrence -> https://www.npmjs.com/package/sql-formatter
const QueryFormatters: QueryFormatterMap = {
sql: queryText => format(trim(queryText), Object.assign(defaultFormatterConfig, formatterConfig)),
json: queryText => JSON.stringify(JSON.parse(queryText), null, 4),
Expand Down

0 comments on commit 2f64bb3

Please sign in to comment.