pub enum DdlStatement {
CreateExternalTable(CreateExternalTable),
CreateMemoryTable(CreateMemoryTable),
CreateView(CreateView),
CreateCatalogSchema(CreateCatalogSchema),
CreateCatalog(CreateCatalog),
CreateIndex(CreateIndex),
DropTable(DropTable),
DropView(DropView),
DropCatalogSchema(DropCatalogSchema),
CreateFunction(CreateFunction),
DropFunction(DropFunction),
}
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”).
CreateIndex(CreateIndex)
Creates a new index.
DropTable(DropTable)
Drops a table.
DropView(DropView)
Drops a view.
DropCatalogSchema(DropCatalogSchema)
Drops a catalog schema
CreateFunction(CreateFunction)
Create function statement
DropFunction(DropFunction)
Drop function statement
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 Debug for DdlStatement
impl Debug for DdlStatement
source§impl Hash for DdlStatement
impl Hash for DdlStatement
source§impl PartialEq for DdlStatement
impl PartialEq for DdlStatement
impl Eq for DdlStatement
impl StructuralPartialEq for DdlStatement
Auto Trait Implementations§
impl Freeze for DdlStatement
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.