pub struct ImportTableStatement {
pub files: ThinVec<Literal>,
pub meta: Meta,
}Expand description
A MySQL IMPORT TABLE FROM '<file>' [, '<file>' …] statement (gated by
UtilitySyntax::import_table) — recreate tables from
serialized .sdi metadata files written by a discarded tablespace (sql_yacc.yy
import_stmt).
The operand is a non-empty comma-separated list of string literals
(TEXT_STRING_sys_list); a bare identifier is ER_PARSE_ERROR on mysql:8, so
files is a Literal list, not a name list. Distinct from DuckDB’s
IMPORT DATABASE '<dir>' (ImportStatement) — both spell the leading IMPORT, but the
second keyword (TABLE vs DATABASE) and their separate gates keep them apart. Not
preparable over the binary protocol (live mysql:8.4.10: ER_UNSUPPORTED_PS 1295).
Fields§
§files: ThinVec<Literal>The non-empty list of .sdi metadata file paths — string literals in source order.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for ImportTableStatement
impl Clone for ImportTableStatement
Source§fn clone(&self) -> ImportTableStatement
fn clone(&self) -> ImportTableStatement
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 ImportTableStatement
impl Debug for ImportTableStatement
Source§impl<'de> Deserialize<'de> for ImportTableStatement
impl<'de> Deserialize<'de> for ImportTableStatement
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 ImportTableStatement
Source§impl Hash for ImportTableStatement
impl Hash for ImportTableStatement
Source§impl PartialEq for ImportTableStatement
impl PartialEq for ImportTableStatement
Source§impl Render for ImportTableStatement
impl Render for ImportTableStatement
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 ImportTableStatement
impl Serialize for ImportTableStatement
Source§impl Spanned for ImportTableStatement
impl Spanned for ImportTableStatement
impl StructuralPartialEq for ImportTableStatement
Auto Trait Implementations§
impl Freeze for ImportTableStatement
impl RefUnwindSafe for ImportTableStatement
impl Send for ImportTableStatement
impl Sync for ImportTableStatement
impl Unpin for ImportTableStatement
impl UnsafeUnpin for ImportTableStatement
impl UnwindSafe for ImportTableStatement
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.