Copyright | (c) 2010 Grant Monroe (c) 2011 Leon P Smith |
---|---|
License | BSD3 |
Safe Haskell | Safe |
Language | Haskell98 |
This module exports the data constructor for the database connection object so that people may create their own foreign bindings to libpq functions that may not exist yet in vanilla postgresql-libpq.
- data Connection = Conn !(ForeignPtr PGconn) !(MVar NoticeBuffer)
- withConn :: Connection -> (Ptr PGconn -> IO b) -> IO b
- data PGconn
- data CNoticeBuffer
- type NoticeBuffer = Ptr CNoticeBuffer
Documentation
data Connection Source #
Connection
encapsulates a connection to the backend.
Conn !(ForeignPtr PGconn) !(MVar NoticeBuffer) |
data CNoticeBuffer Source #
type NoticeBuffer = Ptr CNoticeBuffer Source #