hpqtypes-1.5.2.0: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Array

Contents

Synopsis

Array1

newtype Array1 a Source #

One dimensional array of non-composite elements.

Constructors

Array1 [a] 

Instances

Functor Array1 Source # 

Methods

fmap :: (a -> b) -> Array1 a -> Array1 b #

(<$) :: a -> Array1 b -> Array1 a #

Eq a => Eq (Array1 a) Source # 

Methods

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

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

Ord a => Ord (Array1 a) Source # 

Methods

compare :: Array1 a -> Array1 a -> Ordering #

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

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

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

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

max :: Array1 a -> Array1 a -> Array1 a #

min :: Array1 a -> Array1 a -> Array1 a #

Show a => Show (Array1 a) Source # 

Methods

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

show :: Array1 a -> String #

showList :: [Array1 a] -> ShowS #

PQFormat t => PQFormat (Array1 t) Source # 
FromSQL t => FromSQL (Array1 t) Source # 

Associated Types

type PQBase (Array1 t) :: * Source #

Methods

fromSQL :: Maybe (PQBase (Array1 t)) -> IO (Array1 t) Source #

ToSQL t => ToSQL (Array1 t) Source # 

Associated Types

type PQDest (Array1 t) :: * Source #

Methods

toSQL :: Array1 t -> ParamAllocator -> (Ptr (PQDest (Array1 t)) -> IO r) -> IO r Source #

type PQBase (Array1 t) Source # 
type PQBase (Array1 t) = PGarray
type PQDest (Array1 t) Source # 
type PQDest (Array1 t) = PGarray

unArray1 :: Array1 a -> [a] Source #

Extract list of elements from Array1.

CompositeArray1

newtype CompositeArray1 a Source #

One dimensional array of composite elements.

Constructors

CompositeArray1 [a] 

Instances

Functor CompositeArray1 Source # 

Methods

fmap :: (a -> b) -> CompositeArray1 a -> CompositeArray1 b #

(<$) :: a -> CompositeArray1 b -> CompositeArray1 a #

Eq a => Eq (CompositeArray1 a) Source # 
Ord a => Ord (CompositeArray1 a) Source # 
Show a => Show (CompositeArray1 a) Source # 
PQFormat t => PQFormat (CompositeArray1 t) Source # 
CompositeFromSQL t => FromSQL (CompositeArray1 t) Source # 

Associated Types

type PQBase (CompositeArray1 t) :: * Source #

CompositeToSQL t => ToSQL (CompositeArray1 t) Source # 

Associated Types

type PQDest (CompositeArray1 t) :: * Source #

type PQBase (CompositeArray1 t) Source # 
type PQDest (CompositeArray1 t) Source # 

unCompositeArray1 :: CompositeArray1 a -> [a] Source #

Extract list of elements from CompositeArray1.

Array2

newtype Array2 a Source #

Two dimensional array of non-composite elements.

Constructors

Array2 [[a]] 

Instances

Functor Array2 Source # 

Methods

fmap :: (a -> b) -> Array2 a -> Array2 b #

(<$) :: a -> Array2 b -> Array2 a #

Eq a => Eq (Array2 a) Source # 

Methods

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

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

Ord a => Ord (Array2 a) Source # 

Methods

compare :: Array2 a -> Array2 a -> Ordering #

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

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

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

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

max :: Array2 a -> Array2 a -> Array2 a #

min :: Array2 a -> Array2 a -> Array2 a #

Show a => Show (Array2 a) Source # 

Methods

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

show :: Array2 a -> String #

showList :: [Array2 a] -> ShowS #

PQFormat t => PQFormat (Array2 t) Source # 
FromSQL t => FromSQL (Array2 t) Source # 

Associated Types

type PQBase (Array2 t) :: * Source #

Methods

fromSQL :: Maybe (PQBase (Array2 t)) -> IO (Array2 t) Source #

ToSQL t => ToSQL (Array2 t) Source # 

Associated Types

type PQDest (Array2 t) :: * Source #

Methods

toSQL :: Array2 t -> ParamAllocator -> (Ptr (PQDest (Array2 t)) -> IO r) -> IO r Source #

type PQBase (Array2 t) Source # 
type PQBase (Array2 t) = PGarray
type PQDest (Array2 t) Source # 
type PQDest (Array2 t) = PGarray

unArray2 :: Array2 a -> [[a]] Source #

Extract list of elements from Array2.

CompositeArray2

newtype CompositeArray2 a Source #

Two dimensional array of composite elements.

Constructors

CompositeArray2 [[a]] 

Instances

Functor CompositeArray2 Source # 

Methods

fmap :: (a -> b) -> CompositeArray2 a -> CompositeArray2 b #

(<$) :: a -> CompositeArray2 b -> CompositeArray2 a #

Eq a => Eq (CompositeArray2 a) Source # 
Ord a => Ord (CompositeArray2 a) Source # 
Show a => Show (CompositeArray2 a) Source # 
PQFormat t => PQFormat (CompositeArray2 t) Source # 
CompositeFromSQL t => FromSQL (CompositeArray2 t) Source # 

Associated Types

type PQBase (CompositeArray2 t) :: * Source #

CompositeToSQL t => ToSQL (CompositeArray2 t) Source # 

Associated Types

type PQDest (CompositeArray2 t) :: * Source #

type PQBase (CompositeArray2 t) Source # 
type PQDest (CompositeArray2 t) Source # 

unCompositeArray2 :: CompositeArray2 a -> [[a]] Source #

Extract list of elements from CompositeArray2.