-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | A "PostgreSQL" backend for the "hasql" library
--
@package hasql-postgres
@version 0.3.2
-- | This module contains everything required to use "hasql" with Postgres.
-- For information on how it should be used consult the "hasql" docs.
--
-- Please note that there is a few limitations inflicted by Postgres,
-- encoding which in the type system would seriously burden the API, so
-- it was decided to make it the user's responsibility to make sure that
-- certain conditions are satisfied during the runtime. Particularly this
-- concerns the Mapping instances of Maybe, []
-- and Vector. For details consult the docs on those instances.
module Hasql.Postgres
-- | Settings of a Postgres backend.
data Postgres
Postgres :: ByteString -> Word16 -> Text -> Text -> Text -> Postgres
host :: Postgres -> ByteString
port :: Postgres -> Word16
user :: Postgres -> Text
password :: Postgres -> Text
database :: Postgres -> Text
instance Mapping Postgres UUID
instance Mapping Postgres Bool
instance Mapping Postgres LazyByteString
instance Mapping Postgres ByteString
instance Mapping Postgres LazyText
instance Mapping Postgres Text
instance Mapping Postgres Char
instance Mapping Postgres DiffTime
instance Mapping Postgres UTCTime
instance Mapping Postgres LocalTime
instance Mapping Postgres (TimeOfDay, TimeZone)
instance Mapping Postgres TimeOfDay
instance Mapping Postgres Day
instance Mapping Postgres Scientific
instance Mapping Postgres Double
instance Mapping Postgres Float
instance Mapping Postgres Word64
instance Mapping Postgres Word32
instance Mapping Postgres Word16
instance Mapping Postgres Word8
instance Mapping Postgres Word
instance Mapping Postgres Int64
instance Mapping Postgres Int32
instance Mapping Postgres Int16
instance Mapping Postgres Int8
instance Mapping Postgres Int
instance (Mapping a, ArrayMapping a) => Mapping Postgres (Vector a)
instance (Mapping a, ArrayMapping a) => Mapping Postgres [a]
instance Mapping a => Mapping Postgres (Maybe a)
instance Backend Postgres