From 2f64bb305c7c4d3423d511e900dea64931bcf4fa Mon Sep 17 00:00:00 2001 From: kouya takahashi <3kamarin4skaya6@gmail.com> Date: Wed, 7 Feb 2024 00:45:32 +0900 Subject: [PATCH] [add] referrence sql-formatter --- client/app/lib/queryFormat.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/client/app/lib/queryFormat.ts b/client/app/lib/queryFormat.ts index 6590c951e25..612ba38cd16 100644 --- a/client/app/lib/queryFormat.ts +++ b/client/app/lib/queryFormat.ts @@ -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),