| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Database.PostgreSQL.PQTypes.ToSQL
Documentation
newtype ParamAllocator Source #
Constructors
| ParamAllocator (forall r. (Ptr PGparam -> IO r) -> IO r) | 
class PQFormat t => ToSQL t where Source #
Class which represents "from Haskell type to SQL (libpqtypes) type" transformation.
Methods
Arguments
| :: 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.