Struct sqlparser::ast::CreateFunctionBody
source · pub struct CreateFunctionBody {
pub language: Option<Ident>,
pub behavior: Option<FunctionBehavior>,
pub as_: Option<String>,
pub return_: Option<Expr>,
pub using: Option<CreateFunctionUsing>,
}
Expand description
Postgres: https://www.postgresql.org/docs/15/sql-createfunction.html
Fields§
§language: Option<Ident>
LANGUAGE lang_name
behavior: Option<FunctionBehavior>
IMMUTABLE | STABLE | VOLATILE
as_: Option<String>
AS ‘definition’
Note that Hive’s AS class_name
is also parsed here.
return_: Option<Expr>
RETURN expression
using: Option<CreateFunctionUsing>
USING … (Hive only)
Trait Implementations§
source§impl Clone for CreateFunctionBody
impl Clone for CreateFunctionBody
source§fn clone(&self) -> CreateFunctionBody
fn clone(&self) -> CreateFunctionBody
Returns a copy 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 CreateFunctionBody
impl Debug for CreateFunctionBody
source§impl Default for CreateFunctionBody
impl Default for CreateFunctionBody
source§fn default() -> CreateFunctionBody
fn default() -> CreateFunctionBody
Returns the “default value” for a type. Read more
source§impl Display for CreateFunctionBody
impl Display for CreateFunctionBody
source§impl Hash for CreateFunctionBody
impl Hash for CreateFunctionBody
source§impl Ord for CreateFunctionBody
impl Ord for CreateFunctionBody
source§fn cmp(&self, other: &CreateFunctionBody) -> Ordering
fn cmp(&self, other: &CreateFunctionBody) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CreateFunctionBody> for CreateFunctionBody
impl PartialEq<CreateFunctionBody> for CreateFunctionBody
source§fn eq(&self, other: &CreateFunctionBody) -> bool
fn eq(&self, other: &CreateFunctionBody) -> bool
source§impl PartialOrd<CreateFunctionBody> for CreateFunctionBody
impl PartialOrd<CreateFunctionBody> for CreateFunctionBody
source§fn partial_cmp(&self, other: &CreateFunctionBody) -> Option<Ordering>
fn partial_cmp(&self, other: &CreateFunctionBody) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more