Struct datafusion::common::config::CatalogOptions
source · pub struct CatalogOptions {
pub create_default_catalog_and_schema: bool,
pub default_catalog: String,
pub default_schema: String,
pub information_schema: bool,
pub location: Option<String>,
pub format: Option<String>,
pub has_header: bool,
}
Expand description
Options related to catalog and directory scanning
See also: SessionConfig
Fields§
§create_default_catalog_and_schema: bool
Whether the default catalog and schema should be created automatically.
default_catalog: String
The default catalog name - this impacts what SQL queries use if not specified
default_schema: String
The default schema name - this impacts what SQL queries use if not specified
information_schema: bool
Should DataFusion provide access to information_schema
virtual tables for displaying schema information
location: Option<String>
Location scanned to load tables for default
schema
format: Option<String>
Type of TableProvider
to use when loading default
schema
has_header: bool
Default value for format.has_header
for CREATE EXTERNAL TABLE
if not specified explicitly in the statement.
Trait Implementations§
source§impl Clone for CatalogOptions
impl Clone for CatalogOptions
source§fn clone(&self) -> CatalogOptions
fn clone(&self) -> CatalogOptions
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 ConfigField for CatalogOptions
impl ConfigField for CatalogOptions
source§impl Debug for CatalogOptions
impl Debug for CatalogOptions
source§impl Default for CatalogOptions
impl Default for CatalogOptions
source§fn default() -> CatalogOptions
fn default() -> CatalogOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for CatalogOptions
impl PartialEq for CatalogOptions
source§fn eq(&self, other: &CatalogOptions) -> bool
fn eq(&self, other: &CatalogOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CatalogOptions
Auto Trait Implementations§
impl Freeze for CatalogOptions
impl RefUnwindSafe for CatalogOptions
impl Send for CatalogOptions
impl Sync for CatalogOptions
impl Unpin for CatalogOptions
impl UnwindSafe for CatalogOptions
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> 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