pub struct CreateExternalCatalog {
pub catalog_name: String,
pub catalog_type: String,
pub location: Option<String>,
pub if_not_exists: bool,
pub or_replace: bool,
pub options: HashMap<String, String>,
pub schema: DFSchemaRef,
}Expand description
Creates a catalog by invoking a registered CatalogProviderFactory.
This mirrors CreateExternalTable, which creates a table by invoking a
registered TableProviderFactory.
Fields§
§catalog_name: StringThe catalog name
catalog_type: StringThe key used to look up the CatalogProviderFactory (the STORED AS clause)
location: Option<String>The physical location of the catalog, if applicable
if_not_exists: boolDo nothing (except issuing a notice) if a catalog with the same name already exists
or_replace: boolOption to replace the catalog if it already exists
options: HashMap<String, String>Catalog(provider) specific options
schema: DFSchemaRefDummy schema
Implementations§
Source§impl CreateExternalCatalog
impl CreateExternalCatalog
Sourcepub fn builder(
catalog_name: impl Into<String>,
catalog_type: impl Into<String>,
) -> CreateExternalCatalogBuilder
pub fn builder( catalog_name: impl Into<String>, catalog_type: impl Into<String>, ) -> CreateExternalCatalogBuilder
Creates a builder for CreateExternalCatalog.
§Example
let cmd = CreateExternalCatalog::builder("my_catalog", "memory")
.with_if_not_exists(true)
.build();
assert_eq!(cmd.catalog_name, "my_catalog");Trait Implementations§
Source§impl Clone for CreateExternalCatalog
impl Clone for CreateExternalCatalog
Source§impl Debug for CreateExternalCatalog
impl Debug for CreateExternalCatalog
impl Eq for CreateExternalCatalog
Source§impl Hash for CreateExternalCatalog
impl Hash for CreateExternalCatalog
Source§impl PartialEq for CreateExternalCatalog
impl PartialEq for CreateExternalCatalog
Source§impl PartialOrd for CreateExternalCatalog
impl PartialOrd for CreateExternalCatalog
impl StructuralPartialEq for CreateExternalCatalog
Auto Trait Implementations§
impl Forget for CreateExternalCatalog
impl Freeze for CreateExternalCatalog
impl Move for CreateExternalCatalog
impl RefUnwindSafe for CreateExternalCatalog
impl Send for CreateExternalCatalog
impl Sync for CreateExternalCatalog
impl Unpin for CreateExternalCatalog
impl UnsafeUnpin for CreateExternalCatalog
impl UnwindSafe for CreateExternalCatalog
Blanket Implementations§
impl<T> Allocation for T
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§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