Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
class PQFormat t => ToSQL t where Source
Class which represents "from Haskell type to SQL (libpqtypes) type" transformation.
:: t | Value to be put. |
-> ParamAllocator |
|
-> (Ptr (PQDest t) -> IO r) | Continuation that puts
converted value into inner |
-> IO r |
Put supplied value into inner PGparam
.
ToSQL Bool | |
ToSQL Char | |
ToSQL Double | |
ToSQL Float | |
ToSQL Int16 | |
ToSQL Int32 | |
ToSQL Int64 | |
ToSQL Word8 | |
ToSQL String | Encodes underlying C string as UTF-8, so if you are working with a different encoding, you should not rely on this instance. |
ToSQL ByteString | |
ToSQL Text | Encodes underlying C string as UTF-8, so if you are working with a different encoding, you should not rely on this instance. |
ToSQL LocalTime | |
ToSQL ZonedTime | |
ToSQL TimeOfDay | |
ToSQL UTCTime | |
ToSQL Day | |
ToSQL Interval | |
ToSQL t => ToSQL (Maybe t) | |
CompositeToSQL t => ToSQL (Composite t) | |
ToSQL (Binary ByteString) | |
CompositeToSQL t => ToSQL (CompositeArray2 t) | |
ToSQL t => ToSQL (Array2 t) | |
CompositeToSQL t => ToSQL (CompositeArray1 t) | |
ToSQL t => ToSQL (Array1 t) |