Safe Haskell | None |
---|---|
Language | Haskell2010 |
- sqlString :: String -> Field SqlText
- sqlLazyByteString :: ByteString -> Field SqlBytea
- sqlStrictByteString :: ByteString -> Field SqlBytea
- sqlStrictText :: Text -> Field SqlText
- sqlLazyText :: Text -> Field SqlText
- sqlNumeric :: Scientific -> Field SqlNumeric
- sqlInt4 :: Int -> Field SqlInt4
- sqlInt8 :: Int64 -> Field SqlInt8
- sqlDouble :: Double -> Field SqlFloat8
- sqlBool :: Bool -> Field SqlBool
- sqlUUID :: UUID -> Field SqlUuid
- sqlDay :: Day -> Field SqlDate
- sqlUTCTime :: UTCTime -> Field SqlTimestamptz
- sqlLocalTime :: LocalTime -> Field SqlTimestamp
- sqlZonedTime :: ZonedTime -> Field SqlTimestamptz
- sqlTimeOfDay :: TimeOfDay -> Field SqlTime
- sqlCiStrictText :: CI Text -> Field SqlCitext
- sqlCiLazyText :: CI Text -> Field SqlCitext
- sqlJSON :: String -> Field SqlJson
- sqlStrictJSON :: ByteString -> Field SqlJson
- sqlLazyJSON :: ByteString -> Field SqlJson
- sqlValueJSON :: ToJSON a => a -> Field SqlJson
- sqlJSONB :: String -> Field SqlJsonb
- sqlStrictJSONB :: ByteString -> Field SqlJsonb
- sqlLazyJSONB :: ByteString -> Field SqlJsonb
- sqlValueJSONB :: ToJSON a => a -> Field SqlJsonb
- sqlArray :: IsSqlType b => (a -> Field b) -> [a] -> Field (SqlArray b)
- sqlRange :: IsRangeType b => (a -> Field b) -> RangeBound a -> RangeBound a -> Field (SqlRange b)
- type SqlBool = PGBool
- type SqlDate = PGDate
- type SqlFloat4 = PGFloat4
- type SqlFloat8 = PGFloat8
- type SqlInt8 = PGInt8
- type SqlInt4 = PGInt4
- type SqlInt2 = PGInt2
- type SqlNumeric = PGNumeric
- type SqlText = PGText
- type SqlTime = PGTime
- type SqlTimestamp = PGTimestamp
- type SqlTimestamptz = PGTimestamptz
- type SqlUuid = PGUuid
- type SqlCitext = PGCitext
- type SqlArray = PGArray
- type SqlBytea = PGBytea
- type SqlJson = PGJson
- type SqlJsonb = PGJsonb
- type SqlRange = PGRange
- class IsSqlType sqlType
- class IsSqlType pgType => IsRangeType pgType
Creating SQL values
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 #
SQL datatypes
type SqlNumeric = PGNumeric Source #
type SqlTimestamp = PGTimestamp Source #
type SqlTimestamptz = PGTimestamptz Source #
class IsSqlType sqlType Source #
class IsSqlType pgType => IsRangeType pgType Source #