pub enum RoutineSecurity {
Caller,
Owner,
}Expand description
Whose privileges the routine runs with.
Every engine that has routines has this choice and every engine spells it
differently — SECURITY INVOKER / SECURITY DEFINER on PostgreSQL,
EXECUTE AS CALLER / EXECUTE AS OWNER on T-SQL and Snowflake,
AUTHID CURRENT_USER / AUTHID DEFINER on Oracle — so the choice is here
and the spelling is the renderer’s.
Variants§
Caller
The privileges of whoever calls it. The default, and the safer one: a routine that runs as its caller cannot reach past what the caller already could.
Owner
The privileges of whoever owns it.
Trait Implementations§
Source§impl Clone for RoutineSecurity
impl Clone for RoutineSecurity
impl Copy for RoutineSecurity
Source§impl Debug for RoutineSecurity
impl Debug for RoutineSecurity
Source§impl Default for RoutineSecurity
impl Default for RoutineSecurity
impl Eq for RoutineSecurity
Source§impl PartialEq for RoutineSecurity
impl PartialEq for RoutineSecurity
impl StructuralPartialEq for RoutineSecurity
Auto Trait Implementations§
impl Forget for RoutineSecurity
impl Freeze for RoutineSecurity
impl Move for RoutineSecurity
impl RefUnwindSafe for RoutineSecurity
impl Send for RoutineSecurity
impl Sync for RoutineSecurity
impl Unpin for RoutineSecurity
impl UnsafeUnpin for RoutineSecurity
impl UnwindSafe for RoutineSecurity
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