CPGconn

Members

Functions

consumeInput
void consumeInput()

Prototype: PQconsumeInput

db
string db()

Prototype: PQdb

errorMessage
string errorMessage()

Prototype: PQerrorMessage

escapeLiteral
string escapeLiteral(string msg)

Prototype: PQescapeLiteral

finish
void finish()

Prototype: PQfinish Note: this function should be called even there was an error.

flush
bool flush()

Prototype: PQflush

getResult
shared(IPGresult) getResult()

Prototype: PQgetResult Note: Even when PQresultStatus indicates a fatal error, PQgetResult should be called until it returns a null pointer to allow libpq to process the error information completely. Note: A null pointer is returned when the command is complete and t here will be no more results.

host
string host()

Prototype: PQhost

isBusy
bool isBusy()

Prototype: PQisBusy

parameterStatus
string parameterStatus(string param)

Prototype: PQparameterStatus

poll
PostgresPollingStatusType poll()

Prototype: PQconnectPoll

port
string port()

Prototype: PQport

resetPoll
PostgresPollingStatusType resetPoll()

Prototype: PQresetPoll

resetStart
void resetStart()

Prototype: PQresetStart

sendQuery
void sendQuery(string command)

Prototype: PQsendQuery

sendQueryParams
void sendQueryParams(string command, string[] paramValues)

Prototype: PQsendQueryParams Note: This is simplified version of the command that handles only string params.

sendQueryParamsExt
void sendQueryParamsExt(string command, string[] paramValues)

Like sendQueryParams but uses libpq escaping functions and sendQuery.

setNoticeProcessor
PQnoticeProcessor setNoticeProcessor(PQnoticeProcessor proc, void* arg)

Prototype: PQsetNoticeProcessor

setNoticeReceiver
PQnoticeReceiver setNoticeReceiver(PQnoticeReceiver proc, void* arg)

Prototype: PQsetNoticeReceiver

status
ConnStatusType status()

Prototype: PQstatus

user
string user()

Prototype: PQuser

Inherited Members

From IPGconn

poll
PostgresPollingStatusType poll()

Prototype: PQconnectPoll

status
ConnStatusType status()

Prototype: PQstatus

finish
void finish()

Prototype: PQfinish Note: this function should be called even there was an error.

flush
bool flush()

Prototype: PQflush

resetStart
void resetStart()

Prototype: PQresetStart

resetPoll
PostgresPollingStatusType resetPoll()

Prototype: PQresetPoll

host
string host()

Prototype: PQhost

db
string db()

Prototype: PQdb

user
string user()

Prototype: PQuser

port
string port()

Prototype: PQport

errorMessage
string errorMessage()

Prototype: PQerrorMessage

sendQueryParams
void sendQueryParams(string command, string[] paramValues)

Prototype: PQsendQueryParams Note: This is simplified version of the command that handles only string params. Warning: libpq doesn't support multiple SQL commands in the function. See the sendQueryParamsExt as an extended version of the function.

sendQuery
void sendQuery(string command)

Prototype: PQsendQuery

sendQueryParamsExt
void sendQueryParamsExt(string command, string[] paramValues)

Like sendQueryParams but uses libpq escaping functions and sendQuery.

getResult
shared(IPGresult) getResult()

Prototype: PQgetResult Note: Even when PQresultStatus indicates a fatal error, PQgetResult should be called until it returns a null pointer to allow libpq to process the error information completely. Note: A null pointer is returned when the command is complete and t here will be no more results.

consumeInput
void consumeInput()

Prototype: PQconsumeInput

isBusy
bool isBusy()

Prototype: PQisBusy

escapeLiteral
string escapeLiteral(string msg)

Prototype: PQescapeLiteral

parameterStatus
string parameterStatus(string param)

Prototype: PQparameterStatus

setNoticeReceiver
PQnoticeReceiver setNoticeReceiver(PQnoticeReceiver proc, void* arg)

Prototype: PQsetNoticeReceiver

setNoticeProcessor
PQnoticeProcessor setNoticeProcessor(PQnoticeProcessor proc, void* arg)

Prototype: PQsetNoticeProcessor

logger
shared(ILogger) logger()

Getting local logger

Meta