Skip to content

ResultSetOptions

Source code in docs_src/capo_rds_data/types/result_set_options.py
class ResultSetOptions(TypedDict, closed=True):
    decimal_return_type: NotRequired[
        "capo_rds_data.types.decimal_return_type.DecimalReturnType"
    ]
    """<p>A value that indicates how a field of <code>DECIMAL</code> type is represented in the response. The value of <code>STRING</code>, the default, specifies that it is converted to a String value. The value of <code>DOUBLE_OR_LONG</code> specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.</p> <note> <p>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.</p> </note>"""
    long_return_type: NotRequired["capo_rds_data.types.long_return_type.LongReturnType"]
    """<p>A value that indicates how a field of <code>LONG</code> type is represented. Allowed values are <code>LONG</code> and <code>STRING</code>. The default is <code>LONG</code>. Specify <code>STRING</code> if the length or precision of numeric values might cause truncation or rounding errors. </p>"""

decimal_return_type instance-attribute

decimal_return_type: NotRequired[DecimalReturnType]

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.

long_return_type instance-attribute

long_return_type: NotRequired[LongReturnType]

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.