Struct aws_sdk_glue::types::ViewRepresentation
source · #[non_exhaustive]pub struct ViewRepresentation {
pub dialect: Option<ViewDialect>,
pub dialect_version: Option<String>,
pub view_original_text: Option<String>,
pub view_expanded_text: Option<String>,
pub is_stale: Option<bool>,
}Expand description
A structure that contains the dialect of the view, and the query that defines the view.
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.dialect: Option<ViewDialect>The dialect of the query engine.
dialect_version: Option<String>The version of the dialect of the query engine. For example, 3.0.0.
view_original_text: Option<String>The SELECT query provided by the customer during CREATE VIEW DDL. This SQL is not used during a query on a view (ViewExpandedText is used instead). ViewOriginalText is used for cases like SHOW CREATE VIEW where users want to see the original DDL command that created the view.
view_expanded_text: Option<String>The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform ViewOriginalText to ViewExpandedText. For example:
-
Fully qualify identifiers:
SELECT * from table1 → SELECT * from db1.table1
is_stale: Option<bool>Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.
Implementations§
source§impl ViewRepresentation
impl ViewRepresentation
sourcepub fn dialect(&self) -> Option<&ViewDialect>
pub fn dialect(&self) -> Option<&ViewDialect>
The dialect of the query engine.
sourcepub fn dialect_version(&self) -> Option<&str>
pub fn dialect_version(&self) -> Option<&str>
The version of the dialect of the query engine. For example, 3.0.0.
sourcepub fn view_original_text(&self) -> Option<&str>
pub fn view_original_text(&self) -> Option<&str>
The SELECT query provided by the customer during CREATE VIEW DDL. This SQL is not used during a query on a view (ViewExpandedText is used instead). ViewOriginalText is used for cases like SHOW CREATE VIEW where users want to see the original DDL command that created the view.
sourcepub fn view_expanded_text(&self) -> Option<&str>
pub fn view_expanded_text(&self) -> Option<&str>
The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform ViewOriginalText to ViewExpandedText. For example:
-
Fully qualify identifiers:
SELECT * from table1 → SELECT * from db1.table1
source§impl ViewRepresentation
impl ViewRepresentation
sourcepub fn builder() -> ViewRepresentationBuilder
pub fn builder() -> ViewRepresentationBuilder
Creates a new builder-style object to manufacture ViewRepresentation.
Trait Implementations§
source§impl Clone for ViewRepresentation
impl Clone for ViewRepresentation
source§fn clone(&self) -> ViewRepresentation
fn clone(&self) -> ViewRepresentation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ViewRepresentation
impl Debug for ViewRepresentation
source§impl PartialEq for ViewRepresentation
impl PartialEq for ViewRepresentation
source§fn eq(&self, other: &ViewRepresentation) -> bool
fn eq(&self, other: &ViewRepresentation) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ViewRepresentation
Auto Trait Implementations§
impl Freeze for ViewRepresentation
impl RefUnwindSafe for ViewRepresentation
impl Send for ViewRepresentation
impl Sync for ViewRepresentation
impl Unpin for ViewRepresentation
impl UnwindSafe for ViewRepresentation
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