pub struct CreateServer {
pub name: Ident,
pub wrapper: Ident,
pub options: ThinVec<ServerOption>,
pub meta: Meta,
}Expand description
A MySQL CREATE SERVER <name> FOREIGN DATA WRAPPER <wrapper> OPTIONS ( <option> [, ...] )
federated-server definition (sql_yacc.yy CREATE SERVER_SYM …), gated by
StatementDdlGates::server_definition.
Registers a remote server for the FEDERATED storage engine. The server name and the
FOREIGN DATA WRAPPER name are each an ident_or_text (a bare/backtick identifier or a
quoted string, folded to an Ident whose quote style round-trips). The OPTIONS list is
the fixed ServerOption keyword set and is non-empty — an empty OPTIONS () is
ER_PARSE_ERROR on mysql:8.4.10. Shares its gate and the ServerOption axis with
AlterServer (the two differ only in whether a wrapper is named); DropServer disposes
of the same object.
Fields§
§name: IdentThe server name (ident_or_text).
wrapper: IdentThe FOREIGN DATA WRAPPER name (ident_or_text) — the storage-engine wrapper the
server uses.
options: ThinVec<ServerOption>The OPTIONS list, in source order; non-empty (server_options_list).
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for CreateServer
impl Clone for CreateServer
Source§fn clone(&self) -> CreateServer
fn clone(&self) -> CreateServer
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 CreateServer
impl Debug for CreateServer
Source§impl<'de> Deserialize<'de> for CreateServer
impl<'de> Deserialize<'de> for CreateServer
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 CreateServer
Source§impl Hash for CreateServer
impl Hash for CreateServer
Source§impl PartialEq for CreateServer
impl PartialEq for CreateServer
Source§impl Render for CreateServer
impl Render for CreateServer
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 CreateServer
impl Serialize for CreateServer
impl StructuralPartialEq for CreateServer
Auto Trait Implementations§
impl Freeze for CreateServer
impl RefUnwindSafe for CreateServer
impl Send for CreateServer
impl Sync for CreateServer
impl Unpin for CreateServer
impl UnsafeUnpin for CreateServer
impl UnwindSafe for CreateServer
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.