pg-store-0.5.0: Simple storage interface to PostgreSQL

Copyright(c) Ole Krüger 2016
LicenseBSD3
MaintainerOle Krüger <ole@vprsm.de>
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Store.Types

Contents

Description

 

Synopsis

General

newtype Statement a Source #

SQL statement

Constructors

Statement ByteString 

data Query a Source #

Query object

Constructors

Query 

Fields

Instances

ErrandQuery Query r Source # 

Associated Types

type ErrandResult (Query :: * -> *) r :: * Source #

Eq (Query a) Source # 

Methods

(==) :: Query a -> Query a -> Bool #

(/=) :: Query a -> Query a -> Bool #

Ord (Query a) Source # 

Methods

compare :: Query a -> Query a -> Ordering #

(<) :: Query a -> Query a -> Bool #

(<=) :: Query a -> Query a -> Bool #

(>) :: Query a -> Query a -> Bool #

(>=) :: Query a -> Query a -> Bool #

max :: Query a -> Query a -> Query a #

min :: Query a -> Query a -> Query a #

Show (Query a) Source # 

Methods

showsPrec :: Int -> Query a -> ShowS #

show :: Query a -> String #

showList :: [Query a] -> ShowS #

type ErrandResult Query r Source # 

data PrepQuery ts a Source #

Preparable query object

Constructors

PrepQuery 

Fields

Instances

WithTuple ts => ErrandQuery (PrepQuery ts) r Source # 

Associated Types

type ErrandResult (PrepQuery ts :: * -> *) r :: * Source #

Methods

executeWith :: (Result -> Errand r) -> PrepQuery ts x -> ErrandResult (PrepQuery ts) r Source #

Show (PrepQuery ts a) Source # 

Methods

showsPrec :: Int -> PrepQuery ts a -> ShowS #

show :: PrepQuery ts a -> String #

showList :: [PrepQuery ts a] -> ShowS #

type ErrandResult (PrepQuery ts) r Source # 
type ErrandResult (PrepQuery ts) r = Function ts (Errand r)

newtype Oid :: * #

Constructors

Oid CUInt 

Instances

Eq Oid 

Methods

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

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

Ord Oid 

Methods

compare :: Oid -> Oid -> Ordering #

(<) :: Oid -> Oid -> Bool #

(<=) :: Oid -> Oid -> Bool #

(>) :: Oid -> Oid -> Bool #

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

max :: Oid -> Oid -> Oid #

min :: Oid -> Oid -> Oid #

Read Oid 
Show Oid 

Methods

showsPrec :: Int -> Oid -> ShowS #

show :: Oid -> String #

showList :: [Oid] -> ShowS #

Storable Oid 

Methods

sizeOf :: Oid -> Int #

alignment :: Oid -> Int #

peekElemOff :: Ptr Oid -> Int -> IO Oid #

pokeElemOff :: Ptr Oid -> Int -> Oid -> IO () #

peekByteOff :: Ptr b -> Int -> IO Oid #

pokeByteOff :: Ptr b -> Int -> Oid -> IO () #

peek :: Ptr Oid -> IO Oid #

poke :: Ptr Oid -> Oid -> IO () #