Safe Haskell | None |
---|---|
Language | Haskell98 |
Exports a set of FFI-imported libpq/libpqtypes functions.
- c_PQstatus :: Ptr PGconn -> IO ConnStatusType
- c_PQerrorMessage :: Ptr PGconn -> IO CString
- c_PQsetClientEncoding :: Ptr PGconn -> CString -> 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_PQfinishPtr :: Ptr (Ptr PGconn) -> IO ()
- c_PQconnectdb :: CString -> IO (ForeignPtr (Ptr PGconn))
- 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_PQstatus :: Ptr PGconn -> IO ConnStatusType Source
c_PQresultErrorField :: Ptr PGresult -> ErrorField -> IO CString Source
libpqtypes imports
c_PQconnectdb :: CString -> IO (ForeignPtr (Ptr PGconn)) Source
Safe wrapper for c_rawPQconnectdb
, returns
ForeignPtr
instead of Ptr
.
c_PQinitTypes :: Ptr PGconn -> IO () Source
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.
c_PQparamClear :: Ptr PGparam -> IO () Source