Class: Aws::RDSDataService::Types::ExecuteStatementResponse

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-rdsdataservice/types.rb

Overview

The response elements represent the output of a request to run a SQL statement against a database.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#column_metadataArray<Types::ColumnMetadata>

Metadata for the columns included in the results. This field is blank if the ‘formatRecordsAs` parameter is set to `JSON`.

Returns:



548
549
550
551
552
553
554
555
556
# File 'lib/aws-sdk-rdsdataservice/types.rb', line 548

class ExecuteStatementResponse < Struct.new(
  :records,
  :column_metadata,
  :number_of_records_updated,
  :generated_fields,
  :formatted_records)
  SENSITIVE = []
  include Aws::Structure
end

#formatted_recordsString

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.

Returns:

  • (String)


548
549
550
551
552
553
554
555
556
# File 'lib/aws-sdk-rdsdataservice/types.rb', line 548

class ExecuteStatementResponse < Struct.new(
  :records,
  :column_metadata,
  :number_of_records_updated,
  :generated_fields,
  :formatted_records)
  SENSITIVE = []
  include Aws::Structure
end

#generated_fieldsArray<Types::Field>

Values for fields generated during a DML request.

<note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>

Returns:



548
549
550
551
552
553
554
555
556
# File 'lib/aws-sdk-rdsdataservice/types.rb', line 548

class ExecuteStatementResponse < Struct.new(
  :records,
  :column_metadata,
  :number_of_records_updated,
  :generated_fields,
  :formatted_records)
  SENSITIVE = []
  include Aws::Structure
end

#number_of_records_updatedInteger

The number of records updated by the request.

Returns:

  • (Integer)


548
549
550
551
552
553
554
555
556
# File 'lib/aws-sdk-rdsdataservice/types.rb', line 548

class ExecuteStatementResponse < Struct.new(
  :records,
  :column_metadata,
  :number_of_records_updated,
  :generated_fields,
  :formatted_records)
  SENSITIVE = []
  include Aws::Structure
end

#recordsArray<Array<Types::Field>>

The records returned by the SQL statement. This field is blank if the ‘formatRecordsAs` parameter is set to `JSON`.

Returns:



548
549
550
551
552
553
554
555
556
# File 'lib/aws-sdk-rdsdataservice/types.rb', line 548

class ExecuteStatementResponse < Struct.new(
  :records,
  :column_metadata,
  :number_of_records_updated,
  :generated_fields,
  :formatted_records)
  SENSITIVE = []
  include Aws::Structure
end