Skip to content

Commit

Permalink
Add MySql Trigger to Schema (#4089)
Browse files Browse the repository at this point in the history
* Add MySql Trigger

* Update MySql.json

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
guptaheena and pre-commit-ci[bot] authored Sep 22, 2024
1 parent 215d9f4 commit 7c411a0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/schemas/json/function.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"sql",
"sqlTrigger",
"kusto",
"mysql"
"mysql",
"mysqlTrigger"
]
}
},
Expand Down Expand Up @@ -673,6 +674,17 @@
"description": "The name of the table into which rows will be upserted."
}
}
},
{
"properties": {
"type": {
"enum": ["mysqlTrigger"]
},
"tableName": {
"type": "string",
"description": "The name of the table to be monitored for changes."
}
}
}
]
}
Expand Down
7 changes: 7 additions & 0 deletions src/test/function/MySql.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
"direction": "out",
"name": "products",
"type": "mysql"
},
{
"connectionStringSetting": "MySqlConnectionString",
"direction": "in",
"name": "changes",
"tableName": "Products",
"type": "mysqlTrigger"
}
],
"disabled": false
Expand Down

0 comments on commit 7c411a0

Please sign in to comment.