pub struct AlterObjectSchema {
pub object_type: SchemaRelocationObject,
pub if_exists: bool,
pub name: ObjectName,
pub new_schema: Ident,
pub meta: Meta,
}Expand description
An ALTER {TABLE | VIEW | SEQUENCE} [IF EXISTS] <name> SET SCHEMA <schema> statement
(DuckDB’s AlterObjectSchemaStmt), gated by
StatementDdlGates::alter_object_set_schema.
Relocates a relocatable object to another schema
(third_party/libpg_query/grammar/statements/alter_schema.y at the pinned v1.5.4 commit).
DuckDB 1.5.4’s binder rejects this with Not implemented: T_AlterObjectSchemaStmt, but the
production is parse-reachable (engine-measured via json_serialize_sql), and PARSE-level
parity is the modelled bar — analogous to PostgreSQL’s grammar-present, engine-unimplemented
CreateAssertionStmt. The object kind is one of SchemaRelocationObject’s three.
Fields§
§object_type: SchemaRelocationObjectWhich relocatable object kind was named.
if_exists: boolWhether the IF EXISTS existence guard was present in the source.
name: ObjectNameThe object’s current (schema-qualified) name.
new_schema: IdentThe destination schema.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for AlterObjectSchema
impl Clone for AlterObjectSchema
Source§fn clone(&self) -> AlterObjectSchema
fn clone(&self) -> AlterObjectSchema
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 AlterObjectSchema
impl Debug for AlterObjectSchema
Source§impl<'de> Deserialize<'de> for AlterObjectSchema
impl<'de> Deserialize<'de> for AlterObjectSchema
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 AlterObjectSchema
Source§impl Hash for AlterObjectSchema
impl Hash for AlterObjectSchema
Source§impl PartialEq for AlterObjectSchema
impl PartialEq for AlterObjectSchema
Source§impl Render for AlterObjectSchema
impl Render for AlterObjectSchema
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 AlterObjectSchema
impl Serialize for AlterObjectSchema
Source§impl Spanned for AlterObjectSchema
impl Spanned for AlterObjectSchema
impl StructuralPartialEq for AlterObjectSchema
Auto Trait Implementations§
impl Freeze for AlterObjectSchema
impl RefUnwindSafe for AlterObjectSchema
impl Send for AlterObjectSchema
impl Sync for AlterObjectSchema
impl Unpin for AlterObjectSchema
impl UnsafeUnpin for AlterObjectSchema
impl UnwindSafe for AlterObjectSchema
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.