Skip to content

Commit

Permalink
Merge pull request #1183 from Accenture/dependabot/npm_and_yarn/devel…
Browse files Browse the repository at this point in the history
…op/prettier-plugin-sql-0.18.0

Bump prettier-plugin-sql from 0.15.1 to 0.18.0
  • Loading branch information
JoernBerkefeld authored Jan 23, 2024
2 parents 4d4758b + 3d0c62b commit f309eff
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 25 deletions.
3 changes: 3 additions & 0 deletions boilerplate/files/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"options": {
"formatter": "sql-formatter",
"language": "tsql",
"identifierCase": "preserve",
"dataTypeCase": "preserve",
"functionCase": "upper",
"keywordCase": "upper"
}
}
Expand Down
4 changes: 4 additions & 0 deletions boilerplate/forcedUpdates.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[
{
"version": "6.0.3",
"files": [".prettierrc"]
},
{
"version": "5.0.0",
"files": [".vscode/settings.json", ".prettierrc"]
Expand Down
43 changes: 26 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"mustache": "4.2.0",
"p-limit": "4.0.0",
"prettier": "3.2.4",
"prettier-plugin-sql": "0.15.1",
"prettier-plugin-sql": "0.18.0",
"semver": "7.5.4",
"sfmc-sdk": "2.0.1",
"simple-git": "3.22.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "testExisting_query",
"key": "testExisting_query",
"description": "bla bla",
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n",
"queryText": "Select\n SubscriberKey as testField, Trim(last_name) AS name\nFrom\n _Subscribers\nwhere\n country in ('test')\n",
"targetName": "testExisting_dataExtension",
"targetKey": "testExisting_dataExtension",
"targetId": "21711373-72c1-ec11-b83b-48df37d1deb7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "testExisting_query",
"key": "testExisting_query",
"description": "bla bla",
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n",
"queryText": "Select\n SubscriberKey as testField, Trim(last_name) AS name\nFrom\n _Subscribers\nwhere\n country in ('test')\n",
"targetName": "testExisting_dataExtension",
"targetKey": "testExisting_dataExtension",
"targetId": "21711373-72c1-ec11-b83b-48df37d1deb7",
Expand All @@ -25,7 +25,7 @@
"name": "testExisting_query2",
"key": "testExisting_query2",
"description": "bla bla",
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n",
"queryText": "Select\n SubscriberKey as testField, Trim(last_name) AS name\nfrom\n _Subscribers\nwhere\n country in ('test')\n",
"targetName": "testExisting_dataExtension",
"targetKey": "testExisting_dataExtension-WRONG",
"targetId": "21711373-72c1-ec11-b83b-48df37d1deb7",
Expand All @@ -42,7 +42,7 @@
"name": "testExisting_query_fixedKeys",
"key": "testExisting_query_fixKeys",
"description": "bla bla",
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n",
"queryText": "Select\n SubscriberKey as testField, Trim(last_name) AS name\nfrom\n _Subscribers\nwhere\n country in ('test')\n",
"targetName": "testExisting_dataExtension",
"targetKey": "testExisting_dataExtension",
"targetId": "21711373-72c1-ec11-b83b-48df37d1deb7",
Expand Down
3 changes: 2 additions & 1 deletion test/resources/9999999/query/build-expected.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SELECT
SubscriberKey AS testField
SubscriberKey AS testField,
TRIM(last_name) AS name
FROM
_Subscribers
WHERE
Expand Down
3 changes: 2 additions & 1 deletion test/resources/9999999/query/get-expected.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SELECT
SubscriberKey AS testField
SubscriberKey AS testField,
TRIM(last_name) AS name
FROM
_Subscribers
WHERE
Expand Down
3 changes: 2 additions & 1 deletion test/resources/9999999/query/template-expected.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SELECT
SubscriberKey AS testField
SubscriberKey AS testField,
TRIM(last_name) AS name
FROM
_Subscribers
WHERE
Expand Down
1 change: 1 addition & 0 deletions test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export function mockSetup(isDeploy) {
'node_modules/sql-formatter': fsmock.load(
path.resolve(__dirname, '../node_modules/sql-formatter')
),
'node_modules/jsox': fsmock.load(path.resolve(__dirname, '../node_modules/jsox')),
'node_modules/nearley': fsmock.load(path.resolve(__dirname, '../node_modules/nearley')),
};
if (isDeploy) {
Expand Down

0 comments on commit f309eff

Please sign in to comment.