BaseConnection

BaseConnection

Destructor

~this
~this()
Undocumented in source.

Members

Functions

connect
void connect()

Connect to DB

connectNonblockingStart
void connectNonblockingStart()

Connect to DB in a nonblocking manner

consumeInput
void consumeInput()
Undocumented in source. Be warned that the author may not have intended to support it.
disconnect
void disconnect()

Disconnect from DB

errorMessage
string errorMessage()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
bool flush()
Undocumented in source. Be warned that the author may not have intended to support it.
getAnswer
immutable(Answer) getAnswer()

Get for the next result from a sendQuery. Can return null.

getAnswer
immutable(Answer) getAnswer(PGresult* r)

Get Answer from PQexec* functions or throw error if pull is empty

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

returns the previous notice receiver or processor function pointer, and sets the new value. If you supply a null function pointer, no action is taken, but the current pointer is returned.

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

Properties

nonBlocking
bool nonBlocking [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

conn
PGconn* conn;
Undocumented in source.
connString
string connString;

Database connection parameters

Meta