MySQL Forums
Forum List  »  MySQL Shell

Re: Intercept input using a plugin
Posted by: Frederic Descamps
Date: February 26, 2021 06:43PM

Hi Aleksandr,

As I replied to you already on Slack, this is not possible.

A plugin in Shell cannot hook a SQL command.

What you could do instead of doing:

SQL> DELETE TABLE A;

is to have a plugin that does it AND send to slack.

JS> operation.deleteTable("A")

and "operation" could be a plugin. "deleteTable" a method of that plugin and in that method you could run the sql statement and when done use a slack webhook to share the info.

Regards,

lefred.

Options: ReplyQuote


Subject
Views
Written By
Posted
135
February 09, 2021 08:13AM
Re: Intercept input using a plugin
49
February 26, 2021 06:43PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.