Skip to content

Commit 881b8e0

Browse files
committed
Upgrade parser to 0.26.0
1 parent 1b64aa8 commit 881b8e0

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
],
3434
"dependencies": {
3535
"prettier": "^3.0.3",
36-
"sql-parser-cst": "^0.25.0"
36+
"sql-parser-cst": "^0.26.0"
3737
},
3838
"devDependencies": {
3939
"@types/jest": "^29.2.5",

src/syntax/create_table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const createTableMap: CstToDocMap<AllCreateTableNodes> = {
2020
printClauses(print, node, ...rest),
2121
node.options ? [line, group(print("options"))] : [],
2222
],
23-
table_kind: (print) => print.spaced("kindKw"),
23+
relation_kind: (print) => print.spaced("kindKw"),
2424
column_definition: (print) =>
2525
print.spaced(["name", "dataType", "withOptionsKw", "constraints"]),
2626
table_option: (print, node) => {

src/syntax/sequence.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export const sequenceMap: CstToDocMap<AllSequenceNodes> = {
88
print.spaced(["createKw", "kind", "sequenceKw", "ifNotExistsKw", "name"]),
99
indent([print.dynamicLine(), join(line, print("options"))]),
1010
]),
11-
sequence_kind: (print) => print.spaced("kindKw"),
1211
alter_sequence_stmt: (print) =>
1312
group([
1413
print.spaced(["alterKw", "sequenceKw", "ifExistsKw", "sequence"]),

src/syntax/view.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const viewMap: CstToDocMap<AllViewNodes> = {
2020
hasManyClauses ? [hardline, join(hardline, print("clauses"))] : [],
2121
];
2222
},
23-
view_kind: (print) => print.spaced("kindKw"),
2423
with_check_option_clause: (print) =>
2524
print.spaced(["withKw", "levelKw", "checkOptionKw"]),
2625

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,10 +2174,10 @@ sprintf-js@~1.0.2:
21742174
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
21752175
integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==
21762176

2177-
sql-parser-cst@^0.25.0:
2178-
version "0.25.0"
2179-
resolved "https://registry.yarnpkg.com/sql-parser-cst/-/sql-parser-cst-0.25.0.tgz#5a4b8dd095bcabeda92e3a8e57267766f8dd879d"
2180-
integrity sha512-nbSxNV+xi8U8cjKKtFaBXs8O+kYd60IWgyCMX0yjHSfI8RvTYDsFsIqjcEeZd65xZVTw/7C0dT8Qnvk2jZPJCg==
2177+
sql-parser-cst@^0.26.0:
2178+
version "0.26.0"
2179+
resolved "https://registry.yarnpkg.com/sql-parser-cst/-/sql-parser-cst-0.26.0.tgz#8b439e24e56c57d7b8ab3ba00d858f48a5b0f181"
2180+
integrity sha512-ioMCDKo+4o2Z40wsar6Ughxxsaf1pYthZQLk9vlncSUBFQEeZz1bvqbGrUbWb/iFl0JECRyNHk92yPPLcYh5MA==
21812181

21822182
stack-utils@^2.0.3:
21832183
version "2.0.6"

0 commit comments

Comments
 (0)