Database.PostgreSQL.LibPQ

# Database Connection Control Functions

data Connection

connectdb

connectStart

connectPoll

newNullConnection

isNullConnection

reset

resetStart

resetPoll

data PollingStatus

finish

# Connection Status Functions

db

user

pass

host

port

options

data ConnStatus

status

data TransactionStatus

transactionStatus

parameterStatus

protocolVersion

serverVersion

errorMessage

socket

backendPID

connectionNeedsPassword

connectionUsedPassword

# Command Execution Functions

data Result

exec

data Format

data Oid

invalidOid

execParams

prepare

execPrepared

describePrepared

describePortal

data ExecStatus

resultStatus

resStatus

resultErrorMessage

data FieldCode

resultErrorField

unsafeFreeResult

# Retrieving Query Result Information

ntuples

nfields

data Row

data Column

toRow

toColumn

fname

fnumber

ftable

ftablecol

fformat

ftype

fmod

fsize

getvalue

getvalue'

getisnull

getlength

nparams

paramtype

cmdStatus

cmdTuples

# Escaping Strings for Inclusion in SQL Commands

escapeStringConn

# Escaping Binary Strings for Inclusion in SQL Commands

escapeByteaConn

unescapeBytea

# Escaping Identifiers for Inclusion in SQL Commands

escapeIdentifier

# Using COPY

data CopyInResult

putCopyData

putCopyEnd

data CopyOutResult

getCopyData

# Asynchronous Command Processing

sendQuery

sendQueryParams

sendPrepare

sendQueryPrepared

sendDescribePrepared

sendDescribePortal

getResult

consumeInput

isBusy

setnonblocking

isnonblocking

setSingleRowMode

data FlushStatus

flush

# Cancelling Queries in Progress

data Cancel

getCancel

cancel

# Asynchronous Notification

data Notify

notifies

# Control Functions

clientEncoding

setClientEncoding

data Verbosity

setErrorVerbosity

# Nonfatal Error Reporting

disableNoticeReporting

enableNoticeReporting

getNotice

# Large Objects

data LoFd

loCreat

loCreate

loImport

loImportWithOid

loExport

loOpen

loWrite

loRead

loSeek

loTell

loTruncate

loClose

loUnlink