Safe Haskell | None |
---|---|
Language | Haskell2010 |
Exports a set of FFI-imported libpq/libpqtypes functions.
Synopsis
- c_PQfreemem :: Ptr a -> IO ()
- c_PQstatus :: Ptr PGconn -> IO ConnStatusType
- c_PQerrorMessage :: Ptr PGconn -> IO CString
- c_PQsetClientEncoding :: Ptr PGconn -> CString -> IO CInt
- c_PQsocket :: Ptr PGconn -> IO Fd
- c_PQconsumeInput :: Ptr PGconn -> IO CInt
- c_PQresultStatus :: Ptr PGresult -> IO ExecStatusType
- c_PQresultErrorField :: Ptr PGresult -> ErrorField -> IO CString
- c_PQresultErrorMessage :: Ptr PGresult -> IO CString
- c_PQntuples :: Ptr PGresult -> IO CInt
- c_PQnfields :: Ptr PGresult -> IO CInt
- c_PQcmdTuples :: Ptr PGresult -> IO CString
- c_PQgetisnull :: Ptr PGresult -> CInt -> CInt -> IO CInt
- c_PQfname :: Ptr PGresult -> CInt -> IO CString
- c_PQclear :: Ptr PGresult -> IO ()
- c_PQcancel :: Ptr PGconn -> IO (Maybe String)
- c_PQconnectStart :: CString -> IO (Ptr PGconn)
- c_PQconnectPoll :: Ptr PGconn -> IO PostgresPollingStatusType
- c_PQfinishPtr :: Ptr (Ptr PGconn) -> IO ()
- c_ptr_PQfinishPtr :: FunPtr (Ptr (Ptr PGconn) -> IO ())
- c_PQinitTypes :: Ptr PGconn -> IO ()
- c_PQregisterTypes :: Ptr PGconn -> Ptr PGerror -> TypeClass -> Ptr PGregisterType -> CInt -> CInt -> IO CInt
- c_PQparamExec :: Ptr PGconn -> Ptr PGerror -> Ptr PGparam -> CString -> ResultFormat -> IO (ForeignPtr PGresult)
- c_PQparamCreate :: Ptr PGconn -> Ptr PGerror -> IO (Ptr PGparam)
- c_PQparamClear :: Ptr PGparam -> IO ()
- c_PQparamCount :: Ptr PGparam -> IO CInt
- nullStringCStringLen :: CStringLen
libpq imports
c_PQfreemem :: Ptr a -> IO () Source #
c_PQstatus :: Ptr PGconn -> IO ConnStatusType Source #
c_PQresultErrorField :: Ptr PGresult -> ErrorField -> IO CString Source #
c_PQcancel :: Ptr PGconn -> IO (Maybe String) Source #
Attempt to cancel currently running query. If the request is successfully dispatched Nothing is returned, otherwise a textual explanation of what happened.
libpqtypes imports
c_PQregisterTypes :: Ptr PGconn -> Ptr PGerror -> TypeClass -> Ptr PGregisterType -> CInt -> CInt -> IO CInt Source #
c_PQparamExec :: Ptr PGconn -> Ptr PGerror -> Ptr PGparam -> CString -> ResultFormat -> IO (ForeignPtr PGresult) Source #
Safe wrapper for c_rawPQparamExec
. Wraps result returned by
c_rawPQparamExec
in ForeignPtr
with asynchronous exceptions
masked to prevent memory leaks.