amazonka-rds-data-2.0: Amazon RDS DataService SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RDSData.Types.ResultSetOptions

Description

 
Synopsis

Documentation

data ResultSetOptions Source #

Options that control how the result set is returned.

See: newResultSetOptions smart constructor.

Constructors

ResultSetOptions' 

Fields

  • decimalReturnType :: Maybe 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.

  • longReturnType :: Maybe 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.

Instances

Instances details
ToJSON ResultSetOptions Source # 
Instance details

Defined in Amazonka.RDSData.Types.ResultSetOptions

Generic ResultSetOptions Source # 
Instance details

Defined in Amazonka.RDSData.Types.ResultSetOptions

Associated Types

type Rep ResultSetOptions :: Type -> Type #

Read ResultSetOptions Source # 
Instance details

Defined in Amazonka.RDSData.Types.ResultSetOptions

Show ResultSetOptions Source # 
Instance details

Defined in Amazonka.RDSData.Types.ResultSetOptions

NFData ResultSetOptions Source # 
Instance details

Defined in Amazonka.RDSData.Types.ResultSetOptions

Methods

rnf :: ResultSetOptions -> () #

Eq ResultSetOptions Source # 
Instance details

Defined in Amazonka.RDSData.Types.ResultSetOptions

Hashable ResultSetOptions Source # 
Instance details

Defined in Amazonka.RDSData.Types.ResultSetOptions

type Rep ResultSetOptions Source # 
Instance details

Defined in Amazonka.RDSData.Types.ResultSetOptions

type Rep ResultSetOptions = D1 ('MetaData "ResultSetOptions" "Amazonka.RDSData.Types.ResultSetOptions" "amazonka-rds-data-2.0-IBcRzqxHiGyCjqyJwy4iJz" 'False) (C1 ('MetaCons "ResultSetOptions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "decimalReturnType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DecimalReturnType)) :*: S1 ('MetaSel ('Just "longReturnType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LongReturnType))))

newResultSetOptions :: ResultSetOptions Source #

Create a value of ResultSetOptions with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:decimalReturnType:ResultSetOptions', resultSetOptions_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.

$sel:longReturnType:ResultSetOptions', resultSetOptions_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.

resultSetOptions_decimalReturnType :: Lens' ResultSetOptions (Maybe DecimalReturnType) Source #

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.

resultSetOptions_longReturnType :: Lens' ResultSetOptions (Maybe LongReturnType) Source #

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.