Skip to content

feat: add view/edit support for MySQL stored procedures#264

Open
probeldev wants to merge 1 commit into
Maxteabag:mainfrom
probeldev:feat/mysql-stored-procedures
Open

feat: add view/edit support for MySQL stored procedures#264
probeldev wants to merge 1 commit into
Maxteabag:mainfrom
probeldev:feat/mysql-stored-procedures

Conversation

@probeldev

Copy link
Copy Markdown

This PR adds the ability to view and edit stored procedures for MySQL/MariaDB directly from the Explorer.

  • Added get_procedure_definition to the ProcedureInspector protocol and base adapter.
  • Implemented SHOW CREATE PROCEDURE retrieval in MySQLBaseAdapter (used by both MySQL and MariaDB).
  • Added ExplorerSchemaService.get_procedure_definition.
  • Selecting a procedure in the Explorer and pressing s now opens the procedure DDL in the query editor and shows its properties in the results panel.
  • MySQL/MariaDB DDL is wrapped in DELIMITER $$ blocks and prefixed with DROP PROCEDURE IF EXISTS, so the body can be edited and re-executed without manual delimiter handling.
  • Added client-side DELIMITER support to the multi-statement parser, ensuring procedure bodies containing semicolons are treated as a single executable statement.
  • Fixed TreeOnObjectState so that procedure nodes get the s Show Info binding.
  • Added unit tests for the new adapter, explorer state, object info, DELIMITER splitting, and schema-change detection.
Screen.Recording.2026-07-07.at.08.25.56.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant