pub struct CreateFunction {Show 23 fields
pub name: TableRef,
pub parameters: Vec<FunctionParameter>,
pub return_type: Option<DataType>,
pub body: Option<FunctionBody>,
pub or_replace: bool,
pub if_not_exists: bool,
pub temporary: bool,
pub language: Option<String>,
pub deterministic: Option<bool>,
pub returns_null_on_null_input: Option<bool>,
pub security: Option<FunctionSecurity>,
pub has_parens: bool,
pub sql_data_access: Option<SqlDataAccess>,
pub returns_table_body: Option<String>,
pub language_first: bool,
pub set_options: Vec<FunctionSetOption>,
pub strict: bool,
pub options: Vec<Expression>,
pub is_table_function: bool,
pub property_order: Vec<FunctionPropertyKind>,
pub environment: Vec<Expression>,
pub handler: Option<String>,
pub parameter_style: Option<String>,
}Expand description
CREATE FUNCTION statement
Fields§
§name: TableRef§parameters: Vec<FunctionParameter>§return_type: Option<DataType>§body: Option<FunctionBody>§or_replace: bool§if_not_exists: bool§temporary: bool§language: Option<String>§deterministic: Option<bool>§returns_null_on_null_input: Option<bool>§security: Option<FunctionSecurity>§has_parens: boolWhether parentheses were present in the original syntax
sql_data_access: Option<SqlDataAccess>SQL data access characteristic (CONTAINS SQL, READS SQL DATA, etc.)
returns_table_body: Option<String>TSQL: RETURNS @var TABLE (col_defs) - stores the variable name and column definitions as raw string
language_first: boolTrue if LANGUAGE clause appears before RETURNS clause
set_options: Vec<FunctionSetOption>PostgreSQL SET options: SET key = value, SET key FROM CURRENT
strict: boolTrue if STRICT was used instead of RETURNS NULL ON NULL INPUT
options: Vec<Expression>BigQuery: OPTIONS (key=value, …)
is_table_function: boolBigQuery: True if this is a TABLE FUNCTION (CREATE TABLE FUNCTION)
property_order: Vec<FunctionPropertyKind>Original order of function properties (SET, AS, LANGUAGE, etc.)
environment: Vec<Expression>Databricks: ENVIRONMENT (dependencies = ‘…’, environment_version = ‘…’)
handler: Option<String>HANDLER ‘handler_function’ clause (Databricks)
parameter_style: Option<String>PARAMETER STYLE clause (e.g., PANDAS for Databricks)
Implementations§
Trait Implementations§
Source§impl Clone for CreateFunction
impl Clone for CreateFunction
Source§fn clone(&self) -> CreateFunction
fn clone(&self) -> CreateFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more