Skip to content

Commit

Permalink
Upgrade parser to 0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nene committed Feb 3, 2024
1 parent 1b64aa8 commit 881b8e0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],
"dependencies": {
"prettier": "^3.0.3",
"sql-parser-cst": "^0.25.0"
"sql-parser-cst": "^0.26.0"
},
"devDependencies": {
"@types/jest": "^29.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/syntax/create_table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const createTableMap: CstToDocMap<AllCreateTableNodes> = {
printClauses(print, node, ...rest),
node.options ? [line, group(print("options"))] : [],
],
table_kind: (print) => print.spaced("kindKw"),
relation_kind: (print) => print.spaced("kindKw"),
column_definition: (print) =>
print.spaced(["name", "dataType", "withOptionsKw", "constraints"]),
table_option: (print, node) => {
Expand Down
1 change: 0 additions & 1 deletion src/syntax/sequence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const sequenceMap: CstToDocMap<AllSequenceNodes> = {
print.spaced(["createKw", "kind", "sequenceKw", "ifNotExistsKw", "name"]),
indent([print.dynamicLine(), join(line, print("options"))]),
]),
sequence_kind: (print) => print.spaced("kindKw"),
alter_sequence_stmt: (print) =>
group([
print.spaced(["alterKw", "sequenceKw", "ifExistsKw", "sequence"]),
Expand Down
1 change: 0 additions & 1 deletion src/syntax/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const viewMap: CstToDocMap<AllViewNodes> = {
hasManyClauses ? [hardline, join(hardline, print("clauses"))] : [],
];
},
view_kind: (print) => print.spaced("kindKw"),
with_check_option_clause: (print) =>
print.spaced(["withKw", "levelKw", "checkOptionKw"]),

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2174,10 +2174,10 @@ sprintf-js@~1.0.2:
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==

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

stack-utils@^2.0.3:
version "2.0.6"
Expand Down

0 comments on commit 881b8e0

Please sign in to comment.