pub struct CreateFunction {Show 21 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>,
}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 = ‘…’)
Implementations§
Trait Implementations§
Source§impl Clone for CreateFunction
impl Clone for CreateFunction
Source§fn clone(&self) -> CreateFunction
fn clone(&self) -> CreateFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateFunction
impl Debug for CreateFunction
Source§impl<'de> Deserialize<'de> for CreateFunction
impl<'de> Deserialize<'de> for CreateFunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CreateFunction
impl PartialEq for CreateFunction
Source§impl Serialize for CreateFunction
impl Serialize for CreateFunction
impl StructuralPartialEq for CreateFunction
Auto Trait Implementations§
impl Freeze for CreateFunction
impl RefUnwindSafe for CreateFunction
impl Send for CreateFunction
impl Sync for CreateFunction
impl Unpin for CreateFunction
impl UnwindSafe for CreateFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more