pub enum SetScope {
Session,
Local,
Global,
}Expand description
The scope qualifier on a SET/RESET: SESSION (the default), LOCAL, or
GLOBAL.
SESSION/LOCAL are the PostgreSQL SET scopes; GLOBAL is a DuckDB RESET
scope (RESET GLOBAL x), reached only through
SessionStatement::Reset under
UtilitySyntax::reset_scope — the PostgreSQL
SET grammar never yields it.
Variants§
Session
SET SESSION — apply for the whole session.
Local
SET LOCAL — apply only until the current transaction ends.
Global
SET GLOBAL — apply server-wide (MySQL).
Trait Implementations§
impl Copy for SetScope
Source§impl<'de> Deserialize<'de> for SetScope
impl<'de> Deserialize<'de> for SetScope
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
impl Eq for SetScope
Source§impl Render for SetScope
impl Render for SetScope
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreimpl StructuralPartialEq for SetScope
Auto Trait Implementations§
impl Freeze for SetScope
impl RefUnwindSafe for SetScope
impl Send for SetScope
impl Sync for SetScope
impl Unpin for SetScope
impl UnsafeUnpin for SetScope
impl UnwindSafe for SetScope
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