Struct aws_sdk_redshiftdata::types::StatementData
source · #[non_exhaustive]pub struct StatementData {
pub id: String,
pub query_string: Option<String>,
pub query_strings: Option<Vec<String>>,
pub secret_arn: Option<String>,
pub status: Option<StatusString>,
pub statement_name: Option<String>,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
pub query_parameters: Option<Vec<SqlParameter>>,
pub is_batch_statement: Option<bool>,
}
Expand description
The SQL statement to run.
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.id: String
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
query_string: Option<String>
The SQL statement.
query_strings: Option<Vec<String>>
One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.
secret_arn: Option<String>
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
status: Option<StatusString>
The status of the SQL statement. An example is the that the SQL statement finished.
statement_name: Option<String>
The name of the SQL statement.
created_at: Option<DateTime>
The date and time (UTC) the statement was created.
updated_at: Option<DateTime>
The date and time (UTC) that the statement metadata was last updated.
query_parameters: Option<Vec<SqlParameter>>
The parameters used in a SQL statement.
is_batch_statement: Option<bool>
A value that indicates whether the statement is a batch query request.
Implementations§
source§impl StatementData
impl StatementData
sourcepub fn id(&self) -> &str
pub fn id(&self) -> &str
The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
sourcepub fn query_string(&self) -> Option<&str>
pub fn query_string(&self) -> Option<&str>
The SQL statement.
sourcepub fn query_strings(&self) -> &[String]
pub fn query_strings(&self) -> &[String]
One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .query_strings.is_none()
.
sourcepub fn secret_arn(&self) -> Option<&str>
pub fn secret_arn(&self) -> Option<&str>
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
sourcepub fn status(&self) -> Option<&StatusString>
pub fn status(&self) -> Option<&StatusString>
The status of the SQL statement. An example is the that the SQL statement finished.
sourcepub fn statement_name(&self) -> Option<&str>
pub fn statement_name(&self) -> Option<&str>
The name of the SQL statement.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date and time (UTC) the statement was created.
sourcepub fn updated_at(&self) -> Option<&DateTime>
pub fn updated_at(&self) -> Option<&DateTime>
The date and time (UTC) that the statement metadata was last updated.
sourcepub fn query_parameters(&self) -> &[SqlParameter]
pub fn query_parameters(&self) -> &[SqlParameter]
The parameters used in a SQL statement.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .query_parameters.is_none()
.
sourcepub fn is_batch_statement(&self) -> Option<bool>
pub fn is_batch_statement(&self) -> Option<bool>
A value that indicates whether the statement is a batch query request.
source§impl StatementData
impl StatementData
sourcepub fn builder() -> StatementDataBuilder
pub fn builder() -> StatementDataBuilder
Creates a new builder-style object to manufacture StatementData
.
Trait Implementations§
source§impl Clone for StatementData
impl Clone for StatementData
source§fn clone(&self) -> StatementData
fn clone(&self) -> StatementData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StatementData
impl Debug for StatementData
source§impl PartialEq for StatementData
impl PartialEq for StatementData
source§fn eq(&self, other: &StatementData) -> bool
fn eq(&self, other: &StatementData) -> bool
self
and other
values to be equal, and is used
by ==
.