pub struct InstanceLockStatement {
pub acquire: bool,
pub meta: Meta,
}Expand description
A MySQL instance-wide backup lock statement — LOCK INSTANCE FOR BACKUP (acquire) or
UNLOCK INSTANCE (release) — gated by
UtilitySyntax::lock_instance.
One node for the pair, distinguished by acquire, because neither side
carries any other payload (mysql sql_yacc.yy lock/unlock: both alternatives build a
bare Sql_cmd_{lock,unlock}_instance): a two-struct split would add an empty node for the
release half. Distinct from LockTablesStatement/UnlockTablesStatement, which take a
per-table lock-kind list — the instance lock is a single server-wide DDL-blocking lock
with fixed spelling on both sides, so there is nothing else to model. Both spellings are
grammar-positive on mysql:8.4.10 (ER_UNSUPPORTED_PS under the PREPARE oracle — parsed,
then declined by the PREPARE protocol, never ER_PARSE_ERROR).
Fields§
§acquire: booltrue for LOCK INSTANCE FOR BACKUP (acquire), false for UNLOCK INSTANCE
(release).
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for InstanceLockStatement
impl Clone for InstanceLockStatement
Source§fn clone(&self) -> InstanceLockStatement
fn clone(&self) -> InstanceLockStatement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstanceLockStatement
impl Debug for InstanceLockStatement
Source§impl<'de> Deserialize<'de> for InstanceLockStatement
impl<'de> Deserialize<'de> for InstanceLockStatement
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>,
impl Eq for InstanceLockStatement
Source§impl Hash for InstanceLockStatement
impl Hash for InstanceLockStatement
Source§impl PartialEq for InstanceLockStatement
impl PartialEq for InstanceLockStatement
Source§impl Render for InstanceLockStatement
impl Render for InstanceLockStatement
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for InstanceLockStatement
impl Serialize for InstanceLockStatement
Source§impl Spanned for InstanceLockStatement
impl Spanned for InstanceLockStatement
impl StructuralPartialEq for InstanceLockStatement
Auto Trait Implementations§
impl Freeze for InstanceLockStatement
impl RefUnwindSafe for InstanceLockStatement
impl Send for InstanceLockStatement
impl Sync for InstanceLockStatement
impl Unpin for InstanceLockStatement
impl UnsafeUnpin for InstanceLockStatement
impl UnwindSafe for InstanceLockStatement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DynAstExt for T
impl<T> DynAstExt for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&dyn Any for downcasting a node back to its concrete type.Source§fn dyn_clone(&self) -> Box<dyn DynAstExt>
fn dyn_clone(&self) -> Box<dyn DynAstExt>
Clone (whose
Self-returning signature cannot go through a vtable).Source§fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
PartialEq (whose &Self argument cannot go through a vtable). Equal
iff other holds the same concrete type and that type deems the values
equal; differently-typed nodes are never equal.