pub enum DdlStatement {
CreateExternalTable(CreateExternalTable),
CreateMemoryTable(CreateMemoryTable),
CreateView(CreateView),
CreateCatalogSchema(CreateCatalogSchema),
CreateCatalog(CreateCatalog),
DropTable(DropTable),
DropView(DropView),
DropCatalogSchema(DropCatalogSchema),
}
Expand description
Various types of DDL (CREATE / DROP) catalog manipulation
Variants§
CreateExternalTable(CreateExternalTable)
Creates an external table.
CreateMemoryTable(CreateMemoryTable)
Creates an in memory table.
CreateView(CreateView)
Creates a new view.
CreateCatalogSchema(CreateCatalogSchema)
Creates a new catalog schema.
CreateCatalog(CreateCatalog)
Creates a new catalog (aka “Database”).
DropTable(DropTable)
Drops a table.
DropView(DropView)
Drops a view.
DropCatalogSchema(DropCatalogSchema)
Drops a catalog schema
Implementations§
source§impl DdlStatement
impl DdlStatement
sourcepub fn schema(&self) -> &DFSchemaRef
pub fn schema(&self) -> &DFSchemaRef
Get a reference to the logical plan’s schema
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Return a descriptive string describing the type of this
DdlStatement
sourcepub fn inputs(&self) -> Vec<&LogicalPlan>
pub fn inputs(&self) -> Vec<&LogicalPlan>
Return all inputs for this plan
sourcepub fn display(&self) -> impl Display + '_
pub fn display(&self) -> impl Display + '_
Return a format
able structure with the a human readable
description of this LogicalPlan node per node, not including
children.
See crate::LogicalPlan::display for an example
Trait Implementations§
source§impl Clone for DdlStatement
impl Clone for DdlStatement
source§fn clone(&self) -> DdlStatement
fn clone(&self) -> DdlStatement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for DdlStatement
impl Hash for DdlStatement
source§impl PartialEq<DdlStatement> for DdlStatement
impl PartialEq<DdlStatement> for DdlStatement
source§fn eq(&self, other: &DdlStatement) -> bool
fn eq(&self, other: &DdlStatement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DdlStatement
impl StructuralEq for DdlStatement
impl StructuralPartialEq for DdlStatement
Auto Trait Implementations§
impl !RefUnwindSafe for DdlStatement
impl Send for DdlStatement
impl Sync for DdlStatement
impl Unpin for DdlStatement
impl !UnwindSafe for DdlStatement
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.