Answer

Contains result of query with valid data answer

Constructors

this
this(ResultContainer r)
Undocumented in source.

Members

Functions

OID
OidType OID(size_t colNum)

Returns column Oid

cmdStatus
string cmdStatus()

Commonly this is just the name of the command, but it might include additional data such as the number of rows processed. The caller should not free the result directly. It will be freed when the associated PGresult handle is passed to PQclear.

columnCount
size_t columnCount()

Returns column count

columnExists
bool columnExists(string columnName)

Returns true if the column exists, false if not

columnFormat
ValueFormat columnFormat(size_t colNum)

Returns column format

columnName
string columnName(size_t colNum)

Returns column name by field number

columnNum
size_t columnNum(string columnName)

Returns column number by field name

isSupportedArray
bool isSupportedArray(size_t colNum)
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length()

Returns row count

nParams
uint nParams()

Returns the number of parameters of a prepared statement. This function is only useful when inspecting the result of describePrepared. For other types of queries it will return zero.

opIndex
immutable(Row) opIndex(size_t row)

Returns row of cells

paramType
OidType paramType(T paramNum)

Returns the data type of the indicated statement parameter. Parameter numbers start at 0. This function is only useful when inspecting the result of describePrepared. For other types of queries it will return zero.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Result

status
ExecStatusType status()
Undocumented in source. Be warned that the author may not have intended to support it.
statusString
string statusString()
Undocumented in source. Be warned that the author may not have intended to support it.
resultErrorMessage
string resultErrorMessage()
Undocumented in source. Be warned that the author may not have intended to support it.
resultErrorField
string resultErrorField(int fieldcode)
Undocumented in source. Be warned that the author may not have intended to support it.
getAnswer
immutable(Answer) getAnswer()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta