myt/exporters/procedure.ejs

15 lines
345 B
Plaintext
Executable File

DROP PROCEDURE IF EXISTS <%- schema %>.<%- name %>;
DELIMITER $$
CREATE DEFINER=<%- definer %> PROCEDURE <%- schema %>.<%- name %>(<%- paramList %>)<%
if (dataAccess) { %>
<%- dataAccess %><%
}
if (securityType == 'INVOKER') { %>
SQL SECURITY <%- securityType %><%
}
if (comment) { %>
COMMENT <%- comment %><%
} %>
<%- body %>$$
DELIMITER ;