pub struct CreateProcedure {
pub name: TableRef,
pub parameters: Vec<FunctionParameter>,
pub body: Option<FunctionBody>,
pub or_replace: bool,
pub if_not_exists: bool,
pub language: Option<String>,
pub security: Option<FunctionSecurity>,
pub return_type: Option<DataType>,
pub execute_as: Option<String>,
pub with_options: Vec<String>,
pub has_parens: bool,
pub use_proc_keyword: bool,
}Expand description
CREATE PROCEDURE statement
Fields§
§name: TableRef§parameters: Vec<FunctionParameter>§body: Option<FunctionBody>§or_replace: bool§if_not_exists: bool§language: Option<String>§security: Option<FunctionSecurity>§return_type: Option<DataType>Return type (Snowflake: RETURNS OBJECT, RETURNS VARCHAR, etc.)
execute_as: Option<String>Execution context (EXECUTE AS CALLER, EXECUTE AS OWNER)
with_options: Vec<String>TSQL WITH options (ENCRYPTION, RECOMPILE, SCHEMABINDING, etc.)
has_parens: boolWhether the parameter list had parentheses (false for TSQL procedures without parens)
use_proc_keyword: boolWhether the short form PROC was used (instead of PROCEDURE)
Implementations§
Trait Implementations§
Source§impl Clone for CreateProcedure
impl Clone for CreateProcedure
Source§fn clone(&self) -> CreateProcedure
fn clone(&self) -> CreateProcedure
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 CreateProcedure
impl Debug for CreateProcedure
Source§impl<'de> Deserialize<'de> for CreateProcedure
impl<'de> Deserialize<'de> for CreateProcedure
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 CreateProcedure
impl PartialEq for CreateProcedure
Source§impl Serialize for CreateProcedure
impl Serialize for CreateProcedure
impl StructuralPartialEq for CreateProcedure
Auto Trait Implementations§
impl Freeze for CreateProcedure
impl RefUnwindSafe for CreateProcedure
impl Send for CreateProcedure
impl Sync for CreateProcedure
impl Unpin for CreateProcedure
impl UnwindSafe for CreateProcedure
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