Respond

Worker returns this as query result

Constructors

this
this(QueryException e, shared IConnection conn)

The constructor is used when pool detects problem at its own level. collect method handles other cases.

Members

Functions

collect
bool collect(InputRange!(shared IPGresult) results, shared IConnection conn, bool oneRowConstraint, size_t queryId)

Transforms raw result from data base into BSON format. Also handles errors that was raised in the connection.

Variables

exception
string exception;

Error stored in string

failed
bool failed;

Flag to distinct error case from normal respond

msgs
immutable(string)[] msgs;

Additional messages

result
immutable(Bson)[] result;

Collected result

Meta