hpqtypes-1.5.1.1: Haskell bindings to libpqtypes

Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.PQTypes.Internal.C.Interface

Contents

Description

Exports a set of FFI-imported libpq/libpqtypes functions.

Synopsis

libpq imports

c_PQfreemem :: Ptr a -> IO () #

libpqtypes imports

c_PQconnectdb :: CString -> IO (ForeignPtr (Ptr PGconn)) #

Safe wrapper for c_rawPQconnectdb, returns ForeignPtr instead of Ptr.

c_PQparamExec :: Ptr PGconn -> Ptr PGerror -> Ptr PGparam -> CString -> ResultFormat -> IO (ForeignPtr PGresult) #

Safe wrapper for c_rawPQparamExec. Wraps result returned by c_rawPQparamExec in ForeignPtr with asynchronous exceptions masked to prevent memory leaks.

misc imports