Struct CreateFunction
pub struct CreateFunction {Show 16 fields
pub or_alter: bool,
pub or_replace: bool,
pub temporary: bool,
pub if_not_exists: bool,
pub name: ObjectName,
pub args: Option<Vec<OperateFunctionArg>>,
pub return_type: Option<DataType>,
pub function_body: Option<CreateFunctionBody>,
pub behavior: Option<FunctionBehavior>,
pub called_on_null: Option<FunctionCalledOnNull>,
pub parallel: Option<FunctionParallel>,
pub using: Option<CreateFunctionUsing>,
pub language: Option<Ident>,
pub determinism_specifier: Option<FunctionDeterminismSpecifier>,
pub options: Option<Vec<SqlOption>>,
pub remote_connection: Option<ObjectName>,
}Fields§
§or_alter: boolTrue if this is a CREATE OR ALTER FUNCTION statement
or_replace: bool§temporary: bool§if_not_exists: bool§name: ObjectName§args: Option<Vec<OperateFunctionArg>>§return_type: Option<DataType>§function_body: Option<CreateFunctionBody>The expression that defines the function.
Examples:
AS ((SELECT 1))
AS "console.log();"behavior: Option<FunctionBehavior>§called_on_null: Option<FunctionCalledOnNull>CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT | STRICT
parallel: Option<FunctionParallel>PARALLEL { UNSAFE | RESTRICTED | SAFE }
using: Option<CreateFunctionUsing>USING … (Hive only)
language: Option<Ident>Language used in a UDF definition.
Example:
CREATE FUNCTION foo() LANGUAGE js AS "console.log();"determinism_specifier: Option<FunctionDeterminismSpecifier>Determinism keyword used for non-sql UDF definitions.
options: Option<Vec<SqlOption>>List of options for creating the function.
remote_connection: Option<ObjectName>Connection resource for a remote function.
Example:
CREATE FUNCTION foo()
RETURNS FLOAT64
REMOTE WITH CONNECTION us.myconnectionTrait Implementations§
§impl Clone for CreateFunction
impl Clone for CreateFunction
§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 more§impl Debug for CreateFunction
impl Debug for CreateFunction
§impl Display for CreateFunction
impl Display for CreateFunction
§impl From<CreateFunction> for Statement
impl From<CreateFunction> for Statement
§fn from(c: CreateFunction) -> Statement
fn from(c: CreateFunction) -> Statement
Converts to this type from the input type.
§impl Hash for CreateFunction
impl Hash for CreateFunction
§impl Ord for CreateFunction
impl Ord for CreateFunction
§impl PartialEq for CreateFunction
impl PartialEq for CreateFunction
§impl PartialOrd for CreateFunction
impl PartialOrd for CreateFunction
§impl Visit for CreateFunction
impl Visit for CreateFunction
§impl VisitMut for CreateFunction
impl VisitMut for CreateFunction
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.