myt/exporters/procedure.ejs

15 lines
373 B
Plaintext
Raw Normal View History

DROP PROCEDURE IF EXISTS <%- schema %>.<%- name %>;
2020-11-14 01:38:56 +00:00
DELIMITER $$
CREATE DEFINER=<%- definer %> PROCEDURE <%- schema %>.<%- name %>(<%- locals.paramList %>)<%
if (locals.dataAccess) { %>
2022-02-07 14:43:12 +00:00
<%- dataAccess %><%
}
if (locals.securityType == 'INVOKER') { %>
2022-02-07 14:43:12 +00:00
SQL SECURITY <%- securityType %><%
}
if (locals.comment) { %>
2022-02-07 14:43:12 +00:00
COMMENT <%- comment %><%
} %>
2020-11-14 01:38:56 +00:00
<%- body %>$$
DELIMITER ;