Safe Haskell | None |
---|---|
Language | Haskell2010 |
SQL types and functions to create Field_
s of
those types. To create fields you may find it more convenient to use
Opaleye.ToFields instead.
Documentation
type SqlTimestamptz = PGTimestamptz Source #
type SqlTimestamp = PGTimestamp Source #
type SqlNumeric = PGNumeric Source #
sqlNumeric :: Scientific -> Field SqlNumeric Source #
sqlUTCTime :: UTCTime -> Field SqlTimestamptz Source #
sqlStrictJSON :: ByteString -> Field SqlJson Source #
sqlLazyJSON :: ByteString -> Field SqlJson Source #
sqlStrictJSONB :: ByteString -> Field SqlJsonb Source #
sqlLazyJSONB :: ByteString -> Field SqlJsonb Source #
sqlRange :: IsRangeType b => (a -> Field b) -> RangeBound a -> RangeBound a -> Field (SqlRange b) Source #
class IsSqlType sqlType Source #
Instances
class IsSqlType pgType => IsRangeType pgType Source #
Instances
IsRangeType PGTimestamptz Source # | |
Defined in Opaleye.PGTypes showRangeType :: proxy PGTimestamptz -> String Source # | |
IsRangeType PGTimestamp Source # | |
Defined in Opaleye.PGTypes showRangeType :: proxy PGTimestamp -> String Source # | |
IsRangeType PGNumeric Source # | |
Defined in Opaleye.PGTypes showRangeType :: proxy PGNumeric -> String Source # | |
IsRangeType PGInt4 Source # | |
Defined in Opaleye.PGTypes showRangeType :: proxy PGInt4 -> String Source # | |
IsRangeType PGInt8 Source # | |
Defined in Opaleye.PGTypes showRangeType :: proxy PGInt8 -> String Source # | |
IsRangeType PGDate Source # | |
Defined in Opaleye.PGTypes showRangeType :: proxy PGDate -> String Source # |