Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

Create Stored Procedure using Python plugin in MySQL Workbench (no replies)

$
0
0
Good afternoon,

I'm working on creating open source plugins for MySQL Workbench.

I'm making some tests using the available classes for Python. I've found very usefull tutorials about creating columns and keys in tables.

But what I can't really found is how to create stored procedures using the default classes.

Could you help me to know how to do this?


Thanks.


EDIT:

I asked about this in the IRC and they provide me an answer:

routine = schema.addNewRoutine("db.mysql")
routine.name = 'myroutine'
routine.sqlDefinition = sp_sql_code

And this will add the SP defined in sp_sql_code to the model.

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>