hpqtypes-1.5.1.1: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Interval

Synopsis

Documentation

data Interval #

Representation of INTERVAL PostgreSQL type.

Instances

Eq Interval # 
Ord Interval # 
Show Interval # 
Monoid Interval # 
Storable Interval # 
PQFormat Interval # 
FromSQL Interval # 

Associated Types

type PQBase Interval :: * #

ToSQL Interval # 

Associated Types

type PQDest Interval :: * #

Methods

toSQL :: Interval -> ParamAllocator -> (Ptr (PQDest Interval) -> IO r) -> IO r #

type PQBase Interval # 
type PQDest Interval # 

iyears :: Int32 -> Interval #

Convert Int32 to appropriate Interval representation of given number of years.

imonths :: Int32 -> Interval #

Convert Int32 to appropriate Interval representation of given number of months.

idays :: Int32 -> Interval #

Convert Int32 to appropriate Interval representation of given number of days.

ihours :: Int32 -> Interval #

Convert Int32 to appropriate Interval representation of given number of hours.

iminutes :: Int32 -> Interval #

Convert Int32 to appropriate Interval representation of given number of minutes.

iseconds :: Int32 -> Interval #

Convert Int32 to appropriate Interval representation of given number of seconds.

imicroseconds :: Int32 -> Interval #

Convert Int32 to appropriate Interval representation of given number of microseconds.