libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-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.RedshiftData.Types.Field

Description

 
Synopsis

Documentation

data Field Source #

A data value in a column.

See: newField smart constructor.

Constructors

Field' 

Fields

Instances

Instances details
Eq Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

(==) :: Field -> Field -> Bool #

(/=) :: Field -> Field -> Bool #

Read Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Show Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

showsPrec :: Int -> Field -> ShowS #

show :: Field -> String #

showList :: [Field] -> ShowS #

Generic Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Associated Types

type Rep Field :: Type -> Type #

Methods

from :: Field -> Rep Field x #

to :: Rep Field x -> Field #

NFData Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

rnf :: Field -> () #

Hashable Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

hashWithSalt :: Int -> Field -> Int #

hash :: Field -> Int #

FromJSON Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

type Rep Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

type Rep Field = D1 ('MetaData "Field" "Amazonka.RedshiftData.Types.Field" "libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data" 'False) (C1 ('MetaCons "Field'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "doubleValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "stringValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "longValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) :*: (S1 ('MetaSel ('Just "booleanValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "blobValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64)) :*: S1 ('MetaSel ('Just "isNull") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))))

newField :: Field Source #

Create a value of Field 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:doubleValue:Field', field_doubleValue - A value of the double data type.

$sel:stringValue:Field', field_stringValue - A value of the string data type.

$sel:longValue:Field', field_longValue - A value of the long data type.

$sel:booleanValue:Field', field_booleanValue - A value of the Boolean data type.

$sel:blobValue:Field', field_blobValue - A value of the BLOB data type.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

$sel:isNull:Field', field_isNull - A value that indicates whether the data is NULL.

field_doubleValue :: Lens' Field (Maybe Double) Source #

A value of the double data type.

field_stringValue :: Lens' Field (Maybe Text) Source #

A value of the string data type.

field_longValue :: Lens' Field (Maybe Integer) Source #

A value of the long data type.

field_booleanValue :: Lens' Field (Maybe Bool) Source #

A value of the Boolean data type.

field_blobValue :: Lens' Field (Maybe ByteString) Source #

A value of the BLOB data type.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

field_isNull :: Lens' Field (Maybe Bool) Source #

A value that indicates whether the data is NULL.