export const alterAst = {
type: "Diagram",
padding: [10, 20, 10, 20],
children: [
{
type: "Sequence",
children: [
{ type: "Terminal", text: "ALTER PARAM" },
{
type: "Optional",
child: {
type: "Sequence",
children: [
{ type: "Terminal", text: "IF" },
{ type: "Terminal", text: "EXISTS" },
],
},
},
{ type: "Terminal", text: "$name" },
{
type: "Optional",
child: {
type: "Sequence",
children: [
{ type: "Terminal", text: "VALUE" },
{ type: "NonTerminal", text: "@value" },
],
},
},
{
type: "Optional",
child: {
type: "Choice",
index: 0,
children: [
{
type: "Sequence",
children: [
{ type: "Terminal", text: "COMMENT" },
{ type: "Terminal", text: "@string" },
],
},
{
type: "Sequence",
children: [
{ type: "Terminal", text: "DROP" },
{ type: "Terminal", text: "COMMENT" },
],
},
],
},
},
{
type: "Optional",
child: {
type: "Sequence",
children: [
{ type: "Terminal", text: "PERMISSIONS" },
{
type: "Choice",
index: 1,
children: [
{ type: "Terminal", text: "NONE" },
{ type: "Terminal", text: "FULL" },
{
type: "Sequence",
children: [
{ type: "Terminal", text: "WHERE" },
{ type: "NonTerminal", text: "@condition" },
],
},
],
},
],
},
},
],
},
],
};