hpqtypes-1.2.3: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell98

Database.PostgreSQL.PQTypes.Array

Contents

Synopsis

Array1

newtype Array1 a Source

One dimensional array of non-composite elements.

Constructors

Array1 [a] 

Instances

Functor Array1 
Eq a => Eq (Array1 a) 
Ord a => Ord (Array1 a) 
Show a => Show (Array1 a) 
PQFormat t => PQFormat (Array1 t) 
FromSQL t => FromSQL (Array1 t) 
ToSQL t => ToSQL (Array1 t) 
Typeable (* -> *) Array1 
type PQBase (Array1 t) = PGarray 
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] 

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 
Eq a => Eq (Array2 a) 
Ord a => Ord (Array2 a) 
Show a => Show (Array2 a) 
PQFormat t => PQFormat (Array2 t) 
FromSQL t => FromSQL (Array2 t) 
ToSQL t => ToSQL (Array2 t) 
Typeable (* -> *) Array2 
type PQBase (Array2 t) = PGarray 
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]] 

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

Extract list of elements from CompositeArray2.