CPGconn

Undocumented in source.

Constructors

this
this(Dpq2Connection conn, ILogger plogger)
Undocumented in source.

Members

Functions

consumeInput
void consumeInput()
Undocumented in source. Be warned that the author may not have intended to support it.
errorMessage
string errorMessage()
Undocumented in source. Be warned that the author may not have intended to support it.
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()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

isBusy
bool isBusy()
Undocumented in source. Be warned that the author may not have intended to support it.
logger
shared(ILogger) logger()
Undocumented in source. Be warned that the author may not have intended to support it.
parameterStatus
string parameterStatus(string param)
Undocumented in source. Be warned that the author may not have intended to support it.
poll
PostgresPollingStatusType poll()
Undocumented in source. Be warned that the author may not have intended to support it.
resetPoll
PostgresPollingStatusType resetPoll()
Undocumented in source. Be warned that the author may not have intended to support it.
resetStart
void resetStart()
Undocumented in source. Be warned that the author may not have intended to support it.
sendQuery
void sendQuery(string command)
Undocumented in source. Be warned that the author may not have intended to support it.
sendQueryParams
void sendQueryParams(string command, string[] paramValues)
Undocumented in source. Be warned that the author may not have intended to support it.
sendQueryParamsExt
void sendQueryParamsExt(string command, string[] paramValues)

Like sendQueryParams but uses libpq escaping functions and sendQuery.

server
string server()
Undocumented in source. Be warned that the author may not have intended to support it.
setNoticeProcessor
PQnoticeProcessor setNoticeProcessor(PQnoticeProcessor proc, void* arg)

Prototype: PQsetNoticeProcessor

status
ConnStatusType status()
Undocumented in source. Be warned that the author may not have intended to support it.

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

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

setNoticeProcessor
PQnoticeProcessor setNoticeProcessor(PQnoticeProcessor proc, void* arg)

Prototype: PQsetNoticeProcessor

logger
shared(ILogger) logger()

Getting local logger

server
string server()
Undocumented in source.

Meta