PreparedStatement

Pre-parsed sql query with variable parameters.

Constructors

this
this(ConnT conn, string query, short paramCount, bool named = false, const(OID)[] paramTypes = null)

Creates prepared statement object, wich holds dpeq utility state. Constructor does not write anything to connection write buffer.

Members

Aliases

parse
alias parse = postParseMessage

write Parse message into connection's write buffer.

Functions

ensureParseComplete
void ensureParseComplete()

poll message queue and make sure parse was completed

postCloseMessage
void postCloseMessage()

Post message to destroy named prepared statement.

postParseMessage
void postParseMessage()

write Parse message into connection's write buffer.

Properties

preparedName
string preparedName [@property getter]

name of this prepared statement, as seen by backend.

Meta