opaleye-0.6.7003.1: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.PGTypes

Description

Postgres types and functions to create Columns of those types. You may find it more convenient to use Opaleye.Constant instead.

Synopsis

Documentation

data PGRange a Source #

Instances
Default Constant (PGRange Int) (Column (SqlRange SqlInt4)) # 
Instance details

Defined in Opaleye.Constant

Default Constant (PGRange Int64) (Column (SqlRange SqlInt8)) # 
Instance details

Defined in Opaleye.Constant

Default Constant (PGRange Scientific) (Column (SqlRange SqlNumeric)) # 
Instance details

Defined in Opaleye.Constant

Default Constant (PGRange UTCTime) (Column (SqlRange SqlTimestamptz)) # 
Instance details

Defined in Opaleye.Constant

Default Constant (PGRange LocalTime) (Column (SqlRange SqlTimestamp)) # 
Instance details

Defined in Opaleye.Constant

Default Constant (PGRange Day) (Column (SqlRange SqlDate)) # 
Instance details

Defined in Opaleye.Constant

IsRangeType a => IsSqlType (PGRange a) Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showPGType :: proxy (PGRange a) -> String Source #

showSqlType :: proxy (PGRange a) -> String Source #

(Typeable b, FromField b, QueryRunnerColumnDefault a b) => QueryRunnerColumnDefault (PGRange a) (PGRange b) Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

data PGArray a Source #

Instances
(Default Constant a (Column b), IsSqlType b) => Default Constant [a] (Column (SqlArray b)) # 
Instance details

Defined in Opaleye.Constant

Methods

def :: Constant [a] (Column (SqlArray b)) #

IsSqlType a => IsSqlType (PGArray a) Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showPGType :: proxy (PGArray a) -> String Source #

showSqlType :: proxy (PGArray a) -> String Source #

(Typeable b, QueryRunnerColumnDefault a b) => QueryRunnerColumnDefault (PGArray a) [b] Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

data PGTimestamptz Source #

data PGText Source #

Instances
PGString PGText Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGText Source # 
Instance details

Defined in Opaleye.PGTypes

PGOrd SqlText Source # 
Instance details

Defined in Opaleye.Order

PGJsonIndex SqlText Source # 
Instance details

Defined in Opaleye.Operators

QueryRunnerColumnDefault PGText String Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

QueryRunnerColumnDefault PGText Text Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

QueryRunnerColumnDefault PGText Text Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

Default Constant String (Column SqlText) # 
Instance details

Defined in Opaleye.Constant

Default Constant Text (Column SqlText) # 
Instance details

Defined in Opaleye.Constant

Default Constant Text (Column SqlText) # 
Instance details

Defined in Opaleye.Constant

type Map Nulled (Column PGText) Source # 
Instance details

Defined in Opaleye.Internal.Join

type Map Nulled (Column PGText) Source # 
Instance details

Defined in Opaleye.Internal.Join

data PGInt2 Source #

Instances
PGIntegral PGInt2 Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGInt2 Source # 
Instance details

Defined in Opaleye.PGTypes

PGOrd SqlInt2 Source # 
Instance details

Defined in Opaleye.Order

data PGInt4 Source #

Instances
PGIntegral PGInt4 Source # 
Instance details

Defined in Opaleye.PGTypes

PGNum PGInt4 Source # 
Instance details

Defined in Opaleye.PGTypes

IsRangeType PGInt4 Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showRangeType :: proxy PGInt4 -> String Source #

IsSqlType PGInt4 Source # 
Instance details

Defined in Opaleye.PGTypes

PGOrd SqlInt4 Source # 
Instance details

Defined in Opaleye.Order

PGJsonIndex SqlInt4 Source # 
Instance details

Defined in Opaleye.Operators

QueryRunnerColumnDefault PGInt4 Int Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

QueryRunnerColumnDefault PGInt4 Int32 Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

Default Constant Int (Column SqlInt4) # 
Instance details

Defined in Opaleye.Constant

Default Constant Int32 (Column SqlInt4) # 
Instance details

Defined in Opaleye.Constant

Default Constant (PGRange Int) (Column (SqlRange SqlInt4)) # 
Instance details

Defined in Opaleye.Constant

type Map Nulled (Column PGInt4) Source # 
Instance details

Defined in Opaleye.Internal.Join

data PGInt8 Source #

Instances
PGIntegral PGInt8 Source # 
Instance details

Defined in Opaleye.PGTypes

PGNum PGInt8 Source # 
Instance details

Defined in Opaleye.PGTypes

IsRangeType PGInt8 Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showRangeType :: proxy PGInt8 -> String Source #

IsSqlType PGInt8 Source # 
Instance details

Defined in Opaleye.PGTypes

PGOrd SqlInt8 Source # 
Instance details

Defined in Opaleye.Order

PGJsonIndex SqlInt8 Source # 
Instance details

Defined in Opaleye.Operators

QueryRunnerColumnDefault PGInt8 Int64 Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

Default Constant Int64 (Column SqlInt8) # 
Instance details

Defined in Opaleye.Constant

Default Constant (PGRange Int64) (Column (SqlRange SqlInt8)) # 
Instance details

Defined in Opaleye.Constant

type Map Nulled (Column PGInt8) Source # 
Instance details

Defined in Opaleye.Internal.Join

data PGFloat4 Source #

Instances
IsSqlType PGFloat4 Source # 
Instance details

Defined in Opaleye.PGTypes

PGOrd SqlFloat4 Source # 
Instance details

Defined in Opaleye.Order

data PGDate Source #

Instances
IsRangeType PGDate Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showRangeType :: proxy PGDate -> String Source #

IsSqlType PGDate Source # 
Instance details

Defined in Opaleye.PGTypes

PGOrd SqlDate Source # 
Instance details

Defined in Opaleye.Order

QueryRunnerColumnDefault PGDate Day Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

Default Constant Day (Column SqlDate) # 
Instance details

Defined in Opaleye.Constant

Default Constant (PGRange Day) (Column (SqlRange SqlDate)) # 
Instance details

Defined in Opaleye.Constant

type Map Nulled (Column PGDate) Source # 
Instance details

Defined in Opaleye.Internal.Join

class IsSqlType pgType => IsRangeType pgType where Source #

Minimal complete definition

showRangeType

Methods

showRangeType :: proxy pgType -> String Source #

Instances
IsRangeType PGTimestamptz Source # 
Instance details

Defined in Opaleye.PGTypes

IsRangeType PGTimestamp Source # 
Instance details

Defined in Opaleye.PGTypes

IsRangeType PGNumeric Source # 
Instance details

Defined in Opaleye.PGTypes

IsRangeType PGInt4 Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showRangeType :: proxy PGInt4 -> String Source #

IsRangeType PGInt8 Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showRangeType :: proxy PGInt8 -> String Source #

IsRangeType PGDate Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showRangeType :: proxy PGDate -> String Source #

class IsSqlType sqlType where Source #

Methods

showPGType :: proxy sqlType -> String Source #

Deprecated: Use showSqlType instead. showPGType will be removed in version 0.7.

showSqlType :: proxy sqlType -> String Source #

Instances
IsSqlType PGJsonb Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGJson Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGBytea Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGCitext Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGUuid Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGTimestamptz Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGTimestamp Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGTime Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGText Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGNumeric Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGInt2 Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGInt4 Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGInt8 Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGFloat8 Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGFloat4 Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGDate Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType PGBool Source # 
Instance details

Defined in Opaleye.PGTypes

IsSqlType a => IsSqlType (Nullable a) Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showPGType :: proxy (Nullable a) -> String Source #

showSqlType :: proxy (Nullable a) -> String Source #

IsRangeType a => IsSqlType (PGRange a) Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showPGType :: proxy (PGRange a) -> String Source #

showSqlType :: proxy (PGRange a) -> String Source #

IsSqlType a => IsSqlType (PGArray a) Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showPGType :: proxy (PGArray a) -> String Source #

showSqlType :: proxy (PGArray a) -> String Source #

pgArray :: forall a b. IsSqlType b => (a -> Column b) -> [a] -> Column (PGArray b) Source #

pgRange :: forall a b. IsRangeType b => (a -> Column b) -> RangeBound a -> RangeBound a -> Column (PGRange b) Source #

literalColumn :: Literal -> Column a Source #

Deprecated: literalColumn has been moved to Opaleye.Internal.PGTypes and will be removed in version 0.7.

unsafePgFormatTime :: FormatTime t => Name -> String -> t -> Column c Source #

Deprecated: unsafePgFormatTime has been moved to Opaleye.Internal.PGTypes and will be removed in version 0.7.