pub enum InstallStatement<X: Extension = NoExt> {
Plugin {
name: Ident,
soname: Literal,
meta: Meta,
},
Component {
urns: ThinVec<Literal>,
set: ThinVec<InstallComponentSetElement<X>>,
meta: Meta,
},
}Expand description
A MySQL INSTALL server-administration statement (gated by
UtilitySyntax::plugin_component_statements) — one of the
two forms of sql_yacc.yy install_stmt. The inverse UninstallStatement shares the
same plugin_component_statements gate (an install/uninstall pair, like ATTACH/DETACH).
Generic over X because the COMPONENT form’s optional SET tail carries Exprs.
MySQL grammar-accepts every well-formed shape but cannot prepare the COMPONENT forms
over the binary protocol (ER_UNSUPPORTED_PS 1295) — a bind-time verdict the parse layer
does not model; the PLUGIN form does prepare.
Variants§
Plugin
INSTALL PLUGIN <name> SONAME <soname> — load a single plugin from a shared-library
file. The name is a bare/back-quoted Ident (a quoted-string name is
ER_PARSE_ERROR on mysql:8), the SONAME a required string Literal. Exactly one
plugin — a comma list is rejected.
Fields
Component
INSTALL COMPONENT <urn> [, <urn> …] [SET <var-assignment> [, …]] — load one or more
components by URN, with an optional SET tail of scoped configuration-variable
assignments. Each URN is a string Literal (TEXT_STRING_sys_list); the list is
non-empty.
Fields
set: ThinVec<InstallComponentSetElement<X>>The optional SET tail, empty when none was written; see
InstallComponentSetElement.
Trait Implementations§
Source§impl<X: Clone + Extension> Clone for InstallStatement<X>
impl<X: Clone + Extension> Clone for InstallStatement<X>
Source§fn clone(&self) -> InstallStatement<X>
fn clone(&self) -> InstallStatement<X>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de, X> Deserialize<'de> for InstallStatement<X>where
X: Deserialize<'de> + Extension,
impl<'de, X> Deserialize<'de> for InstallStatement<X>where
X: Deserialize<'de> + Extension,
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<X: Eq + Extension> Eq for InstallStatement<X>
Source§impl<X: Extension + Render> Render for InstallStatement<X>
impl<X: Extension + Render> Render for InstallStatement<X>
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<X> Serialize for InstallStatement<X>
impl<X> Serialize for InstallStatement<X>
Source§impl<X: Extension> Spanned for InstallStatement<X>
impl<X: Extension> Spanned for InstallStatement<X>
impl<X: PartialEq + Extension> StructuralPartialEq for InstallStatement<X>
Auto Trait Implementations§
impl<X> Freeze for InstallStatement<X>
impl<X> RefUnwindSafe for InstallStatement<X>where
X: RefUnwindSafe,
impl<X> Send for InstallStatement<X>where
X: Send,
impl<X> Sync for InstallStatement<X>where
X: Sync,
impl<X> Unpin for InstallStatement<X>where
X: Unpin,
impl<X> UnsafeUnpin for InstallStatement<X>
impl<X> UnwindSafe for InstallStatement<X>where
X: UnwindSafe,
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.