Safe Haskell | Safe-Infered |
---|
Interface to the functions of the the foreign code environment.
- type PGconn = Ptr ()
- type PGresult = Ptr ()
- strlen :: CString -> IO Int
- pqSetdbLogin :: CString -> CString -> CString -> CString -> CString -> CString -> CString -> IO PGconn
- pqStatus :: PGconn -> IO ConnStatusType
- pqErrorMessage :: PGconn -> IO CString
- pqFinish :: PGconn -> IO ()
- pqExec :: PGconn -> CString -> IO PGresult
- pqResultStatus :: PGresult -> IO ExecStatusType
- pqResStatus :: ExecStatusType -> IO CString
- pqResultErrorMessage :: PGresult -> IO CString
- pgNFields :: PGresult -> IO Int
- pqNTuples :: PGresult -> IO Int
- pgFName :: PGresult -> Int -> IO CString
- pqFType :: PGresult -> Int -> IO Oid
- pqFMod :: PGresult -> Int -> IO Int
- pqFNumber :: PGresult -> CString -> IO Int
- pqGetvalue :: PGresult -> Int -> Int -> IO CString
- pqGetisnull :: PGresult -> Int -> Int -> IO Int
Documentation
pqSetdbLogin :: CString -> CString -> CString -> CString -> CString -> CString -> CString -> IO PGconnSource
Refer to PostgreSQL manual, chapter 30, `libpq - C library' (e.g. http:www.postgresql.orgdocs8.3interactivelibpq.html)
pqStatus :: PGconn -> IO ConnStatusTypeSource
pqErrorMessage :: PGconn -> IO CStringSource