pub struct CreateTablespace {
pub undo: bool,
pub name: Ident,
pub datafile: Option<Literal>,
pub use_logfile_group: Option<Ident>,
pub options: ThinVec<TablespaceOption>,
pub meta: Meta,
}Expand description
A MySQL CREATE [UNDO] TABLESPACE <name> [ADD DATAFILE '<f>'] [USE LOGFILE GROUP <lg>] [<option>...] statement (gated by
StatementDdlGates::tablespace_ddl).
One node for both the InnoDB/NDB tablespace (Sql_cmd_create_tablespace) and the
UNDO-tablespace variant (Sql_cmd_create_undo_tablespace), distinguished by
undo. The two differ only in the leading UNDO keyword, whether the datafile
is mandatory (it is for UNDO, optional otherwise), and the accepted option set (UNDO
admits ENGINE alone) — all enforced by the parser. The USE LOGFILE GROUP clause is
NDB-only and never appears on the UNDO form.
Fields§
§undo: boolWhether this is the CREATE UNDO TABLESPACE variant.
name: IdentThe tablespace name.
datafile: Option<Literal>ADD DATAFILE '<file>'. Mandatory (Some) for the UNDO form; optional otherwise.
use_logfile_group: Option<Ident>USE LOGFILE GROUP <name> (NDB, regular tablespace only).
options: ThinVec<TablespaceOption>Options supplied in source order.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for CreateTablespace
impl Clone for CreateTablespace
Source§fn clone(&self) -> CreateTablespace
fn clone(&self) -> CreateTablespace
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 CreateTablespace
impl Debug for CreateTablespace
Source§impl<'de> Deserialize<'de> for CreateTablespace
impl<'de> Deserialize<'de> for CreateTablespace
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 CreateTablespace
Source§impl Hash for CreateTablespace
impl Hash for CreateTablespace
Source§impl PartialEq for CreateTablespace
impl PartialEq for CreateTablespace
Source§impl Render for CreateTablespace
impl Render for CreateTablespace
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 CreateTablespace
impl Serialize for CreateTablespace
Source§impl Spanned for CreateTablespace
impl Spanned for CreateTablespace
impl StructuralPartialEq for CreateTablespace
Auto Trait Implementations§
impl Freeze for CreateTablespace
impl RefUnwindSafe for CreateTablespace
impl Send for CreateTablespace
impl Sync for CreateTablespace
impl Unpin for CreateTablespace
impl UnsafeUnpin for CreateTablespace
impl UnwindSafe for CreateTablespace
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.