hasql-mapping
Safe HaskellNone
LanguageHaskell2010

Hasql.Mapping.IsScalar

Synopsis

Documentation

class IsScalar a where #

Mapping to a scalar value. Anything but array.

The current Hasql API doesn't provide a typesafe boundary to enforce the value being scalar, so consider this to be a part of the contract to not define instances for array mappings using this class.

Methods

encoder :: Value a #

decoder :: Value a #

Instances

Instances details
IsScalar Value #

Maps to PostgreSQL jsonb.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar ByteString #

Maps to PostgreSQL bytea.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Int16 #

Maps to PostgreSQL int2.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Int32 #

Maps to PostgreSQL int4.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Int64 #

Maps to PostgreSQL int8.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar IPRange #

Maps to PostgreSQL inet.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Scientific #

Maps to PostgreSQL numeric.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Text #

Maps to PostgreSQL text.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Day #

Maps to PostgreSQL date.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar DiffTime #

Maps to PostgreSQL interval.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar UTCTime #

Maps to PostgreSQL timestamptz.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar LocalTime #

Maps to PostgreSQL timestamp.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar TimeOfDay #

Maps to PostgreSQL time.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar UUID #

Maps to PostgreSQL uuid.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Bool #

Maps to PostgreSQL bool.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Double #

Maps to PostgreSQL float8.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Float #

Maps to PostgreSQL float4.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar Int #

Maps to PostgreSQL int8.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar (TimeOfDay, TimeZone) #

Maps to PostgreSQL timetz.

Instance details

Defined in Hasql.Mapping.IsScalar

IsScalar (Word8, Word8, Word8, Word8, Word8, Word8) #

Maps to PostgreSQL macaddr.

Instance details

Defined in Hasql.Mapping.IsScalar