Answer

Contains result of query with valid data answer

Constructors

this
this(ResultContainer r)
Undocumented in source.

Members

Functions

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

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.

Properties

OID
size_t OID [@property setter]

Returns column Oid

cmdStatus
string cmdStatus [@property getter]

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 [@property getter]

Returns column count

isSupportedArray
size_t isSupportedArray [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
length
size_t length [@property getter]

Returns row count

Inherited Members

From Result

status
ExecStatusType status [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
statusString
string statusString [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
resultErrorMessage
string resultErrorMessage [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
resultErrorField
int resultErrorField [@property setter]
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