pub struct Statement {Show 21 fields
pub id: String,
pub sql: String,
pub cluster_identifier: Option<String>,
pub workgroup_name: Option<String>,
pub database: String,
pub db_user: Option<String>,
pub secret_arn: Option<String>,
pub status: StatementStatus,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub result_rows: i64,
pub result_size: i64,
pub has_result_set: bool,
pub query_string: String,
pub parameters: Vec<StatementParameter>,
pub sqls: Vec<String>,
pub statement_name: Option<String>,
pub is_batch: bool,
pub result_columns: Vec<(String, String)>,
pub result_data: Vec<Vec<Option<String>>>,
pub error_message: Option<String>,
}Expand description
A statement executed via the Redshift Data API.
Fields§
§id: String§sql: String§cluster_identifier: Option<String>§workgroup_name: Option<String>§database: String§db_user: Option<String>§secret_arn: Option<String>§status: StatementStatus§created_at: DateTime<Utc>§updated_at: DateTime<Utc>§result_rows: i64§result_size: i64§has_result_set: bool§query_string: String§parameters: Vec<StatementParameter>§sqls: Vec<String>§statement_name: Option<String>§is_batch: bool§result_columns: Vec<(String, String)>Column metadata from the query backend: (name, type_str) pairs.
result_data: Vec<Vec<Option<String>>>Row data from the query backend.
error_message: Option<String>Error message when status == Failed.
Trait Implementations§
Source§impl From<&Statement> for StatementView
impl From<&Statement> for StatementView
Source§impl From<StatementView> for Statement
impl From<StatementView> for Statement
Source§fn from(v: StatementView) -> Self
fn from(v: StatementView) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.