Struct aws_sdk_kendra::types::SqlConfiguration
source · #[non_exhaustive]pub struct SqlConfiguration {
pub query_identifiers_enclosing_option: Option<QueryIdentifiersEnclosingOption>,
}Expand description
Provides the configuration information to use a SQL database.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query_identifiers_enclosing_option: Option<QueryIdentifiersEnclosingOption>Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in double quotes (") when making a database query.
By default, Amazon Kendra passes SQL identifiers the way that they are entered into the data source configuration. It does not change the case of identifiers or enclose them in quotes.
PostgreSQL internally converts uppercase characters to lower case characters in identifiers unless they are quoted. Choosing this option encloses identifiers in quotes so that PostgreSQL does not convert the character's case.
For MySQL databases, you must enable the ansi_quotes option when you set this field to DOUBLE_QUOTES.
Implementations§
source§impl SqlConfiguration
impl SqlConfiguration
sourcepub fn query_identifiers_enclosing_option(
&self
) -> Option<&QueryIdentifiersEnclosingOption>
pub fn query_identifiers_enclosing_option( &self ) -> Option<&QueryIdentifiersEnclosingOption>
Determines whether Amazon Kendra encloses SQL identifiers for tables and column names in double quotes (") when making a database query.
By default, Amazon Kendra passes SQL identifiers the way that they are entered into the data source configuration. It does not change the case of identifiers or enclose them in quotes.
PostgreSQL internally converts uppercase characters to lower case characters in identifiers unless they are quoted. Choosing this option encloses identifiers in quotes so that PostgreSQL does not convert the character's case.
For MySQL databases, you must enable the ansi_quotes option when you set this field to DOUBLE_QUOTES.
source§impl SqlConfiguration
impl SqlConfiguration
sourcepub fn builder() -> SqlConfigurationBuilder
pub fn builder() -> SqlConfigurationBuilder
Creates a new builder-style object to manufacture SqlConfiguration.
Trait Implementations§
source§impl Clone for SqlConfiguration
impl Clone for SqlConfiguration
source§fn clone(&self) -> SqlConfiguration
fn clone(&self) -> SqlConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SqlConfiguration
impl Debug for SqlConfiguration
source§impl PartialEq for SqlConfiguration
impl PartialEq for SqlConfiguration
source§fn eq(&self, other: &SqlConfiguration) -> bool
fn eq(&self, other: &SqlConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SqlConfiguration
Auto Trait Implementations§
impl Freeze for SqlConfiguration
impl RefUnwindSafe for SqlConfiguration
impl Send for SqlConfiguration
impl Sync for SqlConfiguration
impl Unpin for SqlConfiguration
impl UnwindSafe for SqlConfiguration
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
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>
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