opaleye-0.5.4.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.PGTypes

Contents

Description

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

Synopsis

Documentation

Creating SQL values

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 #

class IsSqlType pgType where Source #

Methods

showPGType :: proxy pgType -> String Source #

showSqlType will be deprecated in version 0.6. Use showSqlType instead.

showSqlType :: proxy pgType -> String Source #

Instances

IsSqlType PGJsonb Source # 
IsSqlType PGJson Source # 
IsSqlType PGBytea Source # 
IsSqlType PGCitext Source # 
IsSqlType PGUuid Source # 
IsSqlType PGTimestamptz Source # 
IsSqlType PGTimestamp Source # 
IsSqlType PGTime Source # 
IsSqlType PGText Source # 
IsSqlType PGNumeric Source # 
IsSqlType PGInt2 Source # 
IsSqlType PGInt4 Source # 
IsSqlType PGInt8 Source # 
IsSqlType PGFloat8 Source # 
IsSqlType PGFloat4 Source # 
IsSqlType PGDate Source # 
IsSqlType PGBool Source # 
IsSqlType a => IsSqlType (Nullable a) Source # 

Methods

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

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

IsRangeType a => IsSqlType (PGRange a) Source # 

Methods

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

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

IsSqlType a => IsSqlType (PGArray a) Source # 

Methods

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

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

SQL datatypes

Deprecated functions

literalColumn :: Literal -> Column a Source #

Warning: literalColumn has been moved to Opaleye.Internal.PGTypes and will be deprecated in version 0.6

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

Warning: unsafePgFormatTime has been moved to Opaleye.Internal.PGTypes and will be deprecated in version 0.6