Queries

Extends Connection by adding query methods

Just use it as Connection.* methods.

Members

Functions

describePrepared
immutable(Answer) describePrepared(string statementName)

Submits a request to obtain information about the specified prepared statement, and waits for completion.

exec
immutable(Answer) exec(string SQLcmd)

Perform SQL query to DB

execParams
immutable(Answer) execParams(in ref QueryParams qp)

Perform SQL query to DB

execPrepared
immutable(Answer) execPrepared(in ref QueryParams qp)

Submits a request to execute a prepared statement with given parameters, and waits for completion.

getNextNotify
Notify getNextNotify()

Returns null if no notifies was received

prepare
immutable(Result) prepare(string statementName, string sqlStatement, in Oid[] oids = null)

Submits a request to create a prepared statement with the given parameters, and waits for completion.

prepareEx
void prepareEx(string statementName, string sqlStatement, in Oid[] oids = null)

Submits a request to create a prepared statement with the given parameters, and waits for completion.

sendDescribePrepared
void sendDescribePrepared(string statementName)

Submits a request to obtain information about the specified prepared statement, without waiting for completion.

sendPrepare
void sendPrepare(string statementName, string sqlStatement, in Oid[] oids = null)

Sends a request to create a prepared statement with the given parameters, without waiting for completion.

sendQuery
void sendQuery(string SQLcmd)

Submits a command to the server without waiting for the result(s)

sendQueryParams
void sendQueryParams(in ref QueryParams qp)

Submits a command and separate parameters to the server without waiting for the result(s)

sendQueryPrepared
void sendQueryPrepared(in ref QueryParams qp)

Sends a request to execute a prepared statement with given parameters, without waiting for the result(s)

Meta