Skip to content

Commit

Permalink
Build deno [autogenerated commit]
Browse files Browse the repository at this point in the history
  • Loading branch information
oguimbal committed May 5, 2022
1 parent 97b5063 commit 3f88e57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .deno/syntax/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export interface DropTableStatement extends PGNode {
type: 'drop table';
name: QName;
ifExists?: boolean;
cascade?: boolean;
cascade?: 'cascade' | 'restrict';
}

export interface DropSequenceStatement extends PGNode {
Expand Down
6 changes: 4 additions & 2 deletions .deno/syntax/main.ne.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2340,15 +2340,17 @@ const grammar: Grammar = {
{"name": "alter_sequence_option", "symbols": ["kw_restart", "alter_sequence_option$ebnf$1"], "postprocess": x => box(x, ['restart', typeof unbox(x[1]) === 'number' ? unbox(x[1]) : true])},
{"name": "drop_statement$ebnf$1", "symbols": ["kw_ifexists"], "postprocess": id},
{"name": "drop_statement$ebnf$1", "symbols": [], "postprocess": () => null},
{"name": "drop_statement$ebnf$2", "symbols": ["kw_cascade"], "postprocess": id},
{"name": "drop_statement$ebnf$2$subexpression$1", "symbols": ["kw_cascade"]},
{"name": "drop_statement$ebnf$2$subexpression$1", "symbols": ["kw_restrict"]},
{"name": "drop_statement$ebnf$2", "symbols": ["drop_statement$ebnf$2$subexpression$1"], "postprocess": id},
{"name": "drop_statement$ebnf$2", "symbols": [], "postprocess": () => null},
{"name": "drop_statement", "symbols": ["kw_drop", "drop_what", "drop_statement$ebnf$1", "qualified_name", "drop_statement$ebnf$2"], "postprocess": (x: any, rej: any) => {
const v = unwrap(x[1]);
return track(x, {
...v,
... x[2] && {ifExists: true},
name: unwrap(x[3]),
... x[4] && {cascade: true},
... x[4] && {cascade: toStr(x[4]) },
});
}},
{"name": "drop_what", "symbols": [(lexerAny.has("kw_table") ? {type: "kw_table"} : kw_table)], "postprocess": x => track(x, { type: 'drop table' })},
Expand Down
2 changes: 1 addition & 1 deletion .deno/to-sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ const visitor = astVisitor<IAstFullVisitor>(m => ({
}
m.tableRef(val.name);
if (val.cascade) {
ret.push(' CASCADE ');
ret.push(' ', val.cascade, ' ');
}
},
dropIndex: val => {
Expand Down

0 comments on commit 3f88e57

Please sign in to comment.