libZSservicesZSamazonka-rds-dataZSamazonka-rds-data
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.RDSData.Types.SqlParameter

Description

 
Synopsis

Documentation

data SqlParameter Source #

A parameter used in a SQL statement.

See: newSqlParameter smart constructor.

Constructors

SqlParameter' 

Fields

  • value :: Maybe Field

    The value of the parameter.

  • name :: Maybe Text

    The name of the parameter.

  • typeHint :: Maybe TypeHint

    A hint that specifies the correct object type for data type mapping. Possible values are as follows:

    • DATE - The corresponding String parameter value is sent as an object of DATE type to the database. The accepted format is YYYY-MM-DD.
    • DECIMAL - The corresponding String parameter value is sent as an object of DECIMAL type to the database.
    • JSON - The corresponding String parameter value is sent as an object of JSON type to the database.
    • TIME - The corresponding String parameter value is sent as an object of TIME type to the database. The accepted format is HH:MM:SS[.FFF].
    • TIMESTAMP - The corresponding String parameter value is sent as an object of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].
    • UUID - The corresponding String parameter value is sent as an object of UUID type to the database.

Instances

Instances details
Eq SqlParameter Source # 
Instance details

Defined in Amazonka.RDSData.Types.SqlParameter

Read SqlParameter Source # 
Instance details

Defined in Amazonka.RDSData.Types.SqlParameter

Show SqlParameter Source # 
Instance details

Defined in Amazonka.RDSData.Types.SqlParameter

Generic SqlParameter Source # 
Instance details

Defined in Amazonka.RDSData.Types.SqlParameter

Associated Types

type Rep SqlParameter :: Type -> Type #

NFData SqlParameter Source # 
Instance details

Defined in Amazonka.RDSData.Types.SqlParameter

Methods

rnf :: SqlParameter -> () #

Hashable SqlParameter Source # 
Instance details

Defined in Amazonka.RDSData.Types.SqlParameter

ToJSON SqlParameter Source # 
Instance details

Defined in Amazonka.RDSData.Types.SqlParameter

type Rep SqlParameter Source # 
Instance details

Defined in Amazonka.RDSData.Types.SqlParameter

type Rep SqlParameter = D1 ('MetaData "SqlParameter" "Amazonka.RDSData.Types.SqlParameter" "libZSservicesZSamazonka-rds-dataZSamazonka-rds-data" 'False) (C1 ('MetaCons "SqlParameter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Field)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "typeHint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TypeHint)))))

newSqlParameter :: SqlParameter Source #

Create a value of SqlParameter 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:value:SqlParameter', sqlParameter_value - The value of the parameter.

$sel:name:SqlParameter', sqlParameter_name - The name of the parameter.

$sel:typeHint:SqlParameter', sqlParameter_typeHint - A hint that specifies the correct object type for data type mapping. Possible values are as follows:

  • DATE - The corresponding String parameter value is sent as an object of DATE type to the database. The accepted format is YYYY-MM-DD.
  • DECIMAL - The corresponding String parameter value is sent as an object of DECIMAL type to the database.
  • JSON - The corresponding String parameter value is sent as an object of JSON type to the database.
  • TIME - The corresponding String parameter value is sent as an object of TIME type to the database. The accepted format is HH:MM:SS[.FFF].
  • TIMESTAMP - The corresponding String parameter value is sent as an object of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].
  • UUID - The corresponding String parameter value is sent as an object of UUID type to the database.

sqlParameter_value :: Lens' SqlParameter (Maybe Field) Source #

The value of the parameter.

sqlParameter_name :: Lens' SqlParameter (Maybe Text) Source #

The name of the parameter.

sqlParameter_typeHint :: Lens' SqlParameter (Maybe TypeHint) Source #

A hint that specifies the correct object type for data type mapping. Possible values are as follows:

  • DATE - The corresponding String parameter value is sent as an object of DATE type to the database. The accepted format is YYYY-MM-DD.
  • DECIMAL - The corresponding String parameter value is sent as an object of DECIMAL type to the database.
  • JSON - The corresponding String parameter value is sent as an object of JSON type to the database.
  • TIME - The corresponding String parameter value is sent as an object of TIME type to the database. The accepted format is HH:MM:SS[.FFF].
  • TIMESTAMP - The corresponding String parameter value is sent as an object of TIMESTAMP type to the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF].
  • UUID - The corresponding String parameter value is sent as an object of UUID type to the database.