pub struct LoadIndexStatement {
pub targets: LoadIndexTargets,
pub meta: Meta,
}Expand description
A MySQL LOAD INDEX INTO CACHE statement — preload a table’s index blocks into its key
cache (gated by
UtilitySyntax::key_cache_statements).
The preload half of the key-cache pair with CacheIndexStatement; it takes no IN <cache> (the index is loaded into the table’s already-assigned cache). Same list-vs-
partition exclusivity (sql_yacc.yy preload_stmt), plus a per-table IGNORE LEAVES
flag written after the key list — see LoadIndexTargets. Measured on mysql:8.4.10:
IGNORE LEAVES before the key list, a partition with a table list, and a trailing IN <cache> all ER_PARSE_ERROR. Carries no Expr, so it is not generic over X.
Fields§
§targets: LoadIndexTargetsThe table(s) whose indexes are preloaded, and — in the partitioned arm — the selected
partitions; see LoadIndexTargets.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for LoadIndexStatement
impl Clone for LoadIndexStatement
Source§fn clone(&self) -> LoadIndexStatement
fn clone(&self) -> LoadIndexStatement
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 LoadIndexStatement
impl Debug for LoadIndexStatement
Source§impl<'de> Deserialize<'de> for LoadIndexStatement
impl<'de> Deserialize<'de> for LoadIndexStatement
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 LoadIndexStatement
Source§impl Hash for LoadIndexStatement
impl Hash for LoadIndexStatement
Source§impl PartialEq for LoadIndexStatement
impl PartialEq for LoadIndexStatement
Source§impl Render for LoadIndexStatement
impl Render for LoadIndexStatement
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 LoadIndexStatement
impl Serialize for LoadIndexStatement
Source§impl Spanned for LoadIndexStatement
impl Spanned for LoadIndexStatement
impl StructuralPartialEq for LoadIndexStatement
Auto Trait Implementations§
impl Freeze for LoadIndexStatement
impl RefUnwindSafe for LoadIndexStatement
impl Send for LoadIndexStatement
impl Sync for LoadIndexStatement
impl Unpin for LoadIndexStatement
impl UnsafeUnpin for LoadIndexStatement
impl UnwindSafe for LoadIndexStatement
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.