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
Source§impl PartialOrd for DdlStatement
impl PartialOrd 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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§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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more