Skip to main content

Module function

Module function 

Source
Expand description

Function DDL statement builders

This module provides builders for function-related DDL statements:

§Backend Support

BackendCREATEALTERDROP
PostgreSQL
MySQL
SQLite❌ (panics)❌ (panics)❌ (panics)
CockroachDB

§PostgreSQL vs MySQL Differences

  • Language: PostgreSQL supports PL/pgSQL, MySQL has its own syntax
  • Dollar quotes: PostgreSQL uses $$ for function body, MySQL uses BEGIN/END
  • Parameter placeholders: PostgreSQL uses $1, $2, MySQL uses parameters directly

Re-exports§

pub use alter_function::AlterFunctionStatement;
pub use create_function::CreateFunctionStatement;
pub use drop_function::DropFunctionStatement;

Modules§

alter_function
ALTER FUNCTION statement builder
create_function
CREATE FUNCTION statement builder
drop_function
DROP FUNCTION statement builder