IPGconn

Prototype: PGconn

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

logger
shared(ILogger) logger()

Getting local logger

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. Warning: libpq doesn't support multiple SQL commands in the function. See the sendQueryParamsExt as an extended version of the function.

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

Meta