hasql-postgres-0.1.2: A "PostgreSQL" backend for the "hasql" library

Safe HaskellNone
LanguageHaskell2010

Hasql.Postgres

Synopsis

Documentation

data Postgres Source

Settings of a Postgres backend.

Constructors

Postgres 

Instances

Backend Postgres 
Mapping Postgres Bool 
Mapping Postgres Char 
Mapping Postgres Double 
Mapping Postgres Float 
Mapping Postgres Int 
Mapping Postgres Int8 
Mapping Postgres Int16 
Mapping Postgres Int32 
Mapping Postgres Int64 
Mapping Postgres Word 
Mapping Postgres Word8 
Mapping Postgres Word16 
Mapping Postgres Word32 
Mapping Postgres Word64 
Mapping Postgres ByteString 
Mapping Postgres Text 
Mapping Postgres Scientific 
Mapping Postgres LocalTime 
Mapping Postgres ZonedTime 
Mapping Postgres TimeOfDay 
Mapping Postgres UTCTime 
Mapping Postgres Day 
(Mapping Postgres a, Renderable a, Parsable a, OIDMapping a) => Mapping Postgres [a]

Maps to Postgres arrays.

Please note that since String is just an alias to [Char], it will be mapped to an array of characters. If you want to map to a textual type use Text instead.

Mapping Postgres a => Mapping Postgres (Maybe a)

Maps to the same type as the underlying value, encoding the Nothing as NULL.

(Mapping Postgres a, Renderable a, Parsable a, OIDMapping a) => Mapping Postgres (Vector a) 
data Connection Postgres = Connection {} 
data Result Postgres = Result {} 
data StatementArgument Postgres = StatementArgument {}