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.
Synopsis
- 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) |
Instances
Eq Connection Source # | |
Defined in Database.PostgreSQL.LibPQ.Internal (==) :: Connection -> Connection -> Bool # (/=) :: Connection -> Connection -> Bool # |
data CNoticeBuffer Source #
type NoticeBuffer = Ptr CNoticeBuffer Source #