pub struct CreateFunction {Show 15 fields
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_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.myconnection
Trait Implementations§
Source§impl Clone for CreateFunction
impl Clone for CreateFunction
Source§fn clone(&self) -> CreateFunction
fn clone(&self) -> CreateFunction
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 CreateFunction
impl Debug for CreateFunction
Source§impl Display for CreateFunction
impl Display for CreateFunction
Source§impl Hash for CreateFunction
impl Hash for CreateFunction
Source§impl Ord for CreateFunction
impl Ord for CreateFunction
Source§fn cmp(&self, other: &CreateFunction) -> Ordering
fn cmp(&self, other: &CreateFunction) -> 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 for CreateFunction
impl PartialEq for CreateFunction
Source§impl PartialOrd for CreateFunction
impl PartialOrd for CreateFunction
Source§impl Visit for CreateFunction
impl Visit for CreateFunction
Source§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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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