opaleye-0.6.7000.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) #

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

class IsSqlType sqlType where #

Methods

showPGType :: proxy sqlType -> String #

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

showSqlType :: proxy sqlType -> String #

Instances

IsSqlType PGJsonb # 

Methods

showPGType :: proxy PGJsonb -> String #

showSqlType :: proxy PGJsonb -> String #

IsSqlType PGJson # 

Methods

showPGType :: proxy PGJson -> String #

showSqlType :: proxy PGJson -> String #

IsSqlType PGBytea # 

Methods

showPGType :: proxy PGBytea -> String #

showSqlType :: proxy PGBytea -> String #

IsSqlType PGCitext # 

Methods

showPGType :: proxy PGCitext -> String #

showSqlType :: proxy PGCitext -> String #

IsSqlType PGUuid # 

Methods

showPGType :: proxy PGUuid -> String #

showSqlType :: proxy PGUuid -> String #

IsSqlType PGTimestamptz # 
IsSqlType PGTimestamp # 
IsSqlType PGTime # 

Methods

showPGType :: proxy PGTime -> String #

showSqlType :: proxy PGTime -> String #

IsSqlType PGText # 

Methods

showPGType :: proxy PGText -> String #

showSqlType :: proxy PGText -> String #

IsSqlType PGNumeric # 

Methods

showPGType :: proxy PGNumeric -> String #

showSqlType :: proxy PGNumeric -> String #

IsSqlType PGInt2 # 

Methods

showPGType :: proxy PGInt2 -> String #

showSqlType :: proxy PGInt2 -> String #

IsSqlType PGInt4 # 

Methods

showPGType :: proxy PGInt4 -> String #

showSqlType :: proxy PGInt4 -> String #

IsSqlType PGInt8 # 

Methods

showPGType :: proxy PGInt8 -> String #

showSqlType :: proxy PGInt8 -> String #

IsSqlType PGFloat8 # 

Methods

showPGType :: proxy PGFloat8 -> String #

showSqlType :: proxy PGFloat8 -> String #

IsSqlType PGFloat4 # 

Methods

showPGType :: proxy PGFloat4 -> String #

showSqlType :: proxy PGFloat4 -> String #

IsSqlType PGDate # 

Methods

showPGType :: proxy PGDate -> String #

showSqlType :: proxy PGDate -> String #

IsSqlType PGBool # 

Methods

showPGType :: proxy PGBool -> String #

showSqlType :: proxy PGBool -> String #

IsSqlType a => IsSqlType (Nullable a) # 

Methods

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

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

IsRangeType a => IsSqlType (PGRange a) # 

Methods

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

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

IsSqlType a => IsSqlType (PGArray a) # 

Methods

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

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

class IsSqlType pgType => IsRangeType pgType where #

Minimal complete definition

showRangeType

Methods

showRangeType :: proxy pgType -> String #

SQL datatypes

data PGFloat4 #

Instances

data PGInt2 #

Deprecated functions

literalColumn :: Literal -> Column a #

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 #

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