pub struct SqlCatalogBuilder(/* private fields */);Expand description
Builder for SqlCatalog
Implementations§
Source§impl SqlCatalogBuilder
impl SqlCatalogBuilder
Sourcepub fn uri(self, uri: impl Into<String>) -> Self
pub fn uri(self, uri: impl Into<String>) -> Self
Configure the database URI
If SQL_CATALOG_PROP_URI has a value set in props during SqlCatalogBuilder::load,
that value takes precedence, and the value specified by this method will not be used.
Sourcepub fn warehouse_location(self, location: impl Into<String>) -> Self
pub fn warehouse_location(self, location: impl Into<String>) -> Self
Configure the warehouse location
If SQL_CATALOG_PROP_WAREHOUSE has a value set in props during SqlCatalogBuilder::load,
that value takes precedence, and the value specified by this method will not be used.
Sourcepub fn sql_bind_style(self, sql_bind_style: SqlBindStyle) -> Self
pub fn sql_bind_style(self, sql_bind_style: SqlBindStyle) -> Self
Configure the bound SQL Statement
If SQL_CATALOG_PROP_BIND_STYLE has a value set in props during SqlCatalogBuilder::load,
that value takes precedence, and the value specified by this method will not be used.
Sourcepub fn props(self, props: HashMap<String, String>) -> Self
pub fn props(self, props: HashMap<String, String>) -> Self
Configure the any properties
If the same key has values set in props during SqlCatalogBuilder::load,
those values will take precedence.
Sourcepub fn prop(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn prop(self, key: impl Into<String>, value: impl Into<String>) -> Self
Set a new property on the property to be configured. When multiple methods are executed with the same key, the later-set value takes precedence.
If the same key has values set in props during SqlCatalogBuilder::load,
those values will take precedence.
Trait Implementations§
Source§impl CatalogBuilder for SqlCatalogBuilder
impl CatalogBuilder for SqlCatalogBuilder
Source§impl Debug for SqlCatalogBuilder
impl Debug for SqlCatalogBuilder
Auto Trait Implementations§
impl Freeze for SqlCatalogBuilder
impl RefUnwindSafe for SqlCatalogBuilder
impl Send for SqlCatalogBuilder
impl Sync for SqlCatalogBuilder
impl Unpin for SqlCatalogBuilder
impl UnwindSafe for SqlCatalogBuilder
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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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