Class: Aws::RDSDataService::Types::ResultSetOptions

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

Overview

Note:

When making an API call, you may pass ResultSetOptions data as a hash:

{
  decimal_return_type: "STRING", # accepts STRING, DOUBLE_OR_LONG
  long_return_type: "STRING", # accepts STRING, LONG
}

Options that control how the result set is returned.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#decimal_return_typeString

A value that indicates how a field of DECIMAL type is represented in the response. The value of STRING, the default, specifies that it is converted to a String value. The value of DOUBLE_OR_LONG specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.

Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.

Returns:

  • (String)


850
851
852
853
854
855
# File 'gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/types.rb', line 850

class ResultSetOptions < Struct.new(
  :decimal_return_type,
  :long_return_type)
  SENSITIVE = []
  include Aws::Structure
end

#long_return_typeString

A value that indicates how a field of LONG type is represented. Allowed values are LONG and STRING. The default is LONG. Specify STRING if the length or precision of numeric values might cause truncation or rounding errors.

Returns:

  • (String)


850
851
852
853
854
855
# File 'gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/types.rb', line 850

class ResultSetOptions < Struct.new(
  :decimal_return_type,
  :long_return_type)
  SENSITIVE = []
  include Aws::Structure
end