opaleye-0.6.7005.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.PGTypes

Description

Use Opaleye.SqlTypes instead. Will be deprecated in version 0.7.

Synopsis

Documentation

data PGRange a Source #

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

Defined in Opaleye.Constant

Default ToFields (PGRange Int64) (Column (SqlRange SqlInt8)) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields (PGRange Scientific) (Column (SqlRange SqlNumeric)) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields (PGRange UTCTime) (Column (SqlRange SqlTimestamptz)) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields (PGRange LocalTime) (Column (SqlRange SqlTimestamp)) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields (PGRange Day) (Column (SqlRange SqlDate)) Source # 
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, DefaultFromField a b) => QueryRunnerColumnDefault (PGRange a) (PGRange b) Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

data PGArray a Source #

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

Defined in Opaleye.Constant

Methods

def :: ToFields [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, DefaultFromField a b) => QueryRunnerColumnDefault (PGArray a) [b] Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

data PGTimestamptz Source #

Instances
IsSqlType PGTimestamptz Source # 
Instance details

Defined in Opaleye.PGTypes

IsRangeType PGTimestamptz Source # 
Instance details

Defined in Opaleye.PGTypes

PGOrd SqlTimestamptz Source # 
Instance details

Defined in Opaleye.Order

QueryRunnerColumnDefault PGTimestamptz UTCTime Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

QueryRunnerColumnDefault PGTimestamptz ZonedTime Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

Default ToFields UTCTime (Column SqlTimestamptz) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields ZonedTime (Column SqlTimestamptz) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields (PGRange UTCTime) (Column (SqlRange SqlTimestamptz)) Source # 
Instance details

Defined in Opaleye.Constant

type Map Nulled (Column PGTimestamptz) Source # 
Instance details

Defined in Opaleye.Internal.Join

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 Text Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

QueryRunnerColumnDefault PGText Text Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

QueryRunnerColumnDefault PGText String Source # 
Instance details

Defined in Opaleye.Internal.RunQuery

Default ToFields Text (Column SqlText) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields Text (Column SqlText) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields String (Column SqlText) Source # 
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

IsSqlType PGInt4 Source # 
Instance details

Defined in Opaleye.PGTypes

IsRangeType PGInt4 Source # 
Instance details

Defined in Opaleye.PGTypes

Methods

showRangeType :: proxy PGInt4 -> String Source #

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 ToFields Int (Column SqlInt4) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields Int32 (Column SqlInt4) Source # 
Instance details

Defined in Opaleye.Constant

Default ToFields (PGRange Int) (Column (SqlRange SqlInt4)) Source # 
Instance details

Defined in Opaleye.Constant

type Map Nulled (Column PGInt4) 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

class IsSqlType pgType => IsRangeType pgType where Source #

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 #

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.

class IsSqlType sqlType where Source #

Minimal complete definition

showPGType | showSqlType

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.Internal.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 #