Skip to content

Commit

Permalink
feat: add drop index statement
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-Q committed Feb 17, 2023
1 parent 7b4bcd0 commit 781d58d
Show file tree
Hide file tree
Showing 5 changed files with 135,405 additions and 134,262 deletions.
22 changes: 22 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module.exports = grammar({
keyword_engine: _ => make_keyword("engine"),
keyword_default: _ => make_keyword("default"),
keyword_cascade: _ => make_keyword("cascade"),
keyword_restrict: _ => make_keyword("restrict"),
keyword_with: _ => make_keyword("with"),
keyword_no: _ => make_keyword("no"),
keyword_data: _ => make_keyword("data"),
Expand Down Expand Up @@ -805,6 +806,7 @@ module.exports = grammar({
choice(
$.drop_table,
$.drop_view,
$.drop_index,
),
),

Expand All @@ -828,6 +830,26 @@ module.exports = grammar({
),
),

drop_index: $ => seq(
$.keyword_drop,
$.keyword_index,
optional($.keyword_concurrently),
optional($._if_exists),
field("name", $.identifier),
optional(
choice(
$.keyword_cascade,
$.keyword_restrict,
),
),
optional(
seq(
$.keyword_on,
$.table_reference,
),
),
),

rename_object: $ => seq(
$.keyword_rename,
$.keyword_to,
Expand Down
95 changes: 95 additions & 0 deletions src/grammar.json

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

66 changes: 66 additions & 0 deletions src/node-types.json

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

Loading

0 comments on commit 781d58d

Please sign in to comment.