OptionalnameOptionalbodyThe SQL body of the procedure (everything inside BEGIN...END or $$...$$). If omitted, the generated DDL will have an empty body placeholder.
OptionaldialectTarget dialect. Controls the DDL syntax that is generated. One of: 'mysql' | 'mariadb' | 'postgres' | 'sqlite' Defaults to 'mysql'.
OptionalschemaOptional schema prefix, e.g. 'public'
OptionalreplaceIf true, generates CREATE OR REPLACE PROCEDURE (Postgres) or DROP PROCEDURE IF EXISTS + CREATE PROCEDURE (MySQL). Default: false.
OptionalparamsInput parameters (functions never have OUT params)
SQL return type, e.g. 'TEXT', 'INTEGER', 'TABLE(id INT, name TEXT)'. Required for functions.
OptionallanguageProcedural language. Default: 'plpgsql' for postgres, 'SQL' for simple expressions.
OptionalvolatilitySet DETERMINISTIC / IMMUTABLE / STABLE / VOLATILE hint. MySQL: 'DETERMINISTIC' | 'NOT DETERMINISTIC' Postgres: 'IMMUTABLE' | 'STABLE' | 'VOLATILE'
The name of the stored procedure in the database. Defaults to the method name if not provided.