pub struct SqlCatalogConfig { /* private fields */ }Expand description
A struct representing the SQL catalog configuration.
This struct contains various parameters that are used to configure a SQL catalog,
such as the database URI, warehouse location, and file I/O settings.
You are required to provide a SqlBindStyle, which determines how SQL statements will be bound to values in the catalog.
The options available for this parameter include:
SqlBindStyle::DollarNumeric: Binds SQL statements using$1,$2, etc., as placeholders. This is for PostgreSQL databases.SqlBindStyle::QuestionMark: Binds SQL statements using?as a placeholder. This is for MySQL and SQLite databases.
Implementations§
Source§impl SqlCatalogConfig
impl SqlCatalogConfig
Sourcepub fn builder() -> SqlCatalogConfigBuilder<((), (), (), (), (), ())>
pub fn builder() -> SqlCatalogConfigBuilder<((), (), (), (), (), ())>
Create a builder for building SqlCatalogConfig.
On the builder, call .uri(...), .name(...), .warehouse_location(...), .file_io(...), .sql_bind_style(...), .props(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of SqlCatalogConfig.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqlCatalogConfig
impl !RefUnwindSafe for SqlCatalogConfig
impl Send for SqlCatalogConfig
impl Sync for SqlCatalogConfig
impl Unpin for SqlCatalogConfig
impl !UnwindSafe for SqlCatalogConfig
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> Downcast for T
impl<T> Downcast for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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