opaleye-0.6.7000.0: An SQL-generating DSL targeting PostgreSQL

Safe HaskellNone
LanguageHaskell2010

Opaleye.SqlTypes

Contents

Synopsis

Creating SQL values

sqlArray :: IsSqlType b => (a -> Field b) -> [a] -> Field (SqlArray b) Source #

SQL datatypes

class IsSqlType sqlType 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 #