Struct aws_sdk_athena::model::QueryExecution
source · [−]#[non_exhaustive]pub struct QueryExecution {
pub query_execution_id: Option<String>,
pub query: Option<String>,
pub statement_type: Option<StatementType>,
pub result_configuration: Option<ResultConfiguration>,
pub query_execution_context: Option<QueryExecutionContext>,
pub status: Option<QueryExecutionStatus>,
pub statistics: Option<QueryExecutionStatistics>,
pub work_group: Option<String>,
pub engine_version: Option<EngineVersion>,
}Expand description
Information about a single instance of a query execution.
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_execution_id: Option<String>The unique identifier for each query execution.
query: Option<String>The SQL query statements which the query execution ran.
statement_type: Option<StatementType>The type of query statement that was run. DDL indicates DDL query statements. DML indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT. UTILITY indicates query statements other than DDL and DML, such as SHOW CREATE TABLE, or DESCRIBE TABLE.
result_configuration: Option<ResultConfiguration>The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.
query_execution_context: Option<QueryExecutionContext>The database in which the query execution occurred.
status: Option<QueryExecutionStatus>The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
statistics: Option<QueryExecutionStatistics>Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.
work_group: Option<String>The name of the workgroup in which the query ran.
engine_version: Option<EngineVersion>The engine version that executed the query.
Implementations
sourceimpl QueryExecution
impl QueryExecution
sourcepub fn query_execution_id(&self) -> Option<&str>
pub fn query_execution_id(&self) -> Option<&str>
The unique identifier for each query execution.
sourcepub fn statement_type(&self) -> Option<&StatementType>
pub fn statement_type(&self) -> Option<&StatementType>
The type of query statement that was run. DDL indicates DDL query statements. DML indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT. UTILITY indicates query statements other than DDL and DML, such as SHOW CREATE TABLE, or DESCRIBE TABLE.
sourcepub fn result_configuration(&self) -> Option<&ResultConfiguration>
pub fn result_configuration(&self) -> Option<&ResultConfiguration>
The location in Amazon S3 where query results were stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.
sourcepub fn query_execution_context(&self) -> Option<&QueryExecutionContext>
pub fn query_execution_context(&self) -> Option<&QueryExecutionContext>
The database in which the query execution occurred.
sourcepub fn status(&self) -> Option<&QueryExecutionStatus>
pub fn status(&self) -> Option<&QueryExecutionStatus>
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
sourcepub fn statistics(&self) -> Option<&QueryExecutionStatistics>
pub fn statistics(&self) -> Option<&QueryExecutionStatistics>
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.
sourcepub fn work_group(&self) -> Option<&str>
pub fn work_group(&self) -> Option<&str>
The name of the workgroup in which the query ran.
sourcepub fn engine_version(&self) -> Option<&EngineVersion>
pub fn engine_version(&self) -> Option<&EngineVersion>
The engine version that executed the query.
sourceimpl QueryExecution
impl QueryExecution
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture QueryExecution
Trait Implementations
sourceimpl Clone for QueryExecution
impl Clone for QueryExecution
sourcefn clone(&self) -> QueryExecution
fn clone(&self) -> QueryExecution
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for QueryExecution
impl Debug for QueryExecution
sourceimpl PartialEq<QueryExecution> for QueryExecution
impl PartialEq<QueryExecution> for QueryExecution
sourcefn eq(&self, other: &QueryExecution) -> bool
fn eq(&self, other: &QueryExecution) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &QueryExecution) -> bool
fn ne(&self, other: &QueryExecution) -> bool
This method tests for !=.
impl StructuralPartialEq for QueryExecution
Auto Trait Implementations
impl RefUnwindSafe for QueryExecution
impl Send for QueryExecution
impl Sync for QueryExecution
impl Unpin for QueryExecution
impl UnwindSafe for QueryExecution
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more