#[non_exhaustive]pub struct ExecuteStatementOutput {
pub records: Option<Vec<Vec<Field>>>,
pub column_metadata: Option<Vec<ColumnMetadata>>,
pub number_of_records_updated: i64,
pub generated_fields: Option<Vec<Field>>,
pub formatted_records: Option<String>,
/* private fields */
}Expand description
The response elements represent the output of a request to run a SQL statement against a 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.records: Option<Vec<Vec<Field>>>The records returned by the SQL statement. This field is blank if the formatRecordsAs parameter is set to JSON.
column_metadata: Option<Vec<ColumnMetadata>>Metadata for the columns included in the results. This field is blank if the formatRecordsAs parameter is set to JSON.
number_of_records_updated: i64The number of records updated by the request.
generated_fields: Option<Vec<Field>>Values for fields generated during a DML request.
The generatedFields data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the RETURNING clause. For more information, see Returning Data From Modified Rows in the PostgreSQL documentation.
formatted_records: Option<String>A string value that represents the result set of a SELECT statement in JSON format. This value is only present when the formatRecordsAs parameter is set to JSON.
The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.
Implementations§
source§impl ExecuteStatementOutput
impl ExecuteStatementOutput
sourcepub fn records(&self) -> &[Vec<Field>]
pub fn records(&self) -> &[Vec<Field>]
The records returned by the SQL statement. This field is blank if the formatRecordsAs parameter is set to JSON.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .records.is_none().
sourcepub fn column_metadata(&self) -> &[ColumnMetadata]
pub fn column_metadata(&self) -> &[ColumnMetadata]
Metadata for the columns included in the results. This field is blank if the formatRecordsAs parameter is set to JSON.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .column_metadata.is_none().
sourcepub fn number_of_records_updated(&self) -> i64
pub fn number_of_records_updated(&self) -> i64
The number of records updated by the request.
sourcepub fn generated_fields(&self) -> &[Field]
pub fn generated_fields(&self) -> &[Field]
Values for fields generated during a DML request.
The generatedFields data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the RETURNING clause. For more information, see Returning Data From Modified Rows in the PostgreSQL documentation.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .generated_fields.is_none().
sourcepub fn formatted_records(&self) -> Option<&str>
pub fn formatted_records(&self) -> Option<&str>
A string value that represents the result set of a SELECT statement in JSON format. This value is only present when the formatRecordsAs parameter is set to JSON.
The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.
source§impl ExecuteStatementOutput
impl ExecuteStatementOutput
sourcepub fn builder() -> ExecuteStatementOutputBuilder
pub fn builder() -> ExecuteStatementOutputBuilder
Creates a new builder-style object to manufacture ExecuteStatementOutput.
Trait Implementations§
source§impl Clone for ExecuteStatementOutput
impl Clone for ExecuteStatementOutput
source§fn clone(&self) -> ExecuteStatementOutput
fn clone(&self) -> ExecuteStatementOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExecuteStatementOutput
impl Debug for ExecuteStatementOutput
source§impl PartialEq for ExecuteStatementOutput
impl PartialEq for ExecuteStatementOutput
source§fn eq(&self, other: &ExecuteStatementOutput) -> bool
fn eq(&self, other: &ExecuteStatementOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for ExecuteStatementOutput
impl RequestId for ExecuteStatementOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.