Answer

Contains result of query with valid data answer

Constructors

this
this(ResultContainer r)
Undocumented in source.

Members

Aliases

isSupportedArray
alias isSupportedArray = isArray
Undocumented in source.

Functions

OID
OidType OID(size_t colNum)

Returns column Oid

cmdStatus
string cmdStatus()

Returns the command status tag from the SQL command that generated the PGresult Commonly this is just the name of the command, but it might include additional data such as the number of rows processed.

cmdTuples
string cmdTuples()

* Returns the number of rows affected by the SQL command. * This function returns a string containing the number of rows affected by the SQL statement * that generated the Answer. This function can only be used following the execution of * a SELECT, CREATE TABLE AS, INSERT, UPDATE, DELETE, MOVE, FETCH, or COPY statement, * or an EXECUTE of a prepared query that contains an INSERT, UPDATE, or DELETE statement. * If the command that generated the Anwser was anything else, cmdTuples returns an empty string.

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

isArray
bool isArray(size_t colNum)

Checks if column type is array

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()

Inherited Members

From Result

status
ExecStatusType status()

Returns the result status of the command.

statusString
string statusString()

Text description of result status.

resultErrorMessage
string resultErrorMessage()

Returns the error message associated with the command, or an empty string if there was no error.

resultErrorField
string resultErrorField(int fieldcode)

Returns an individual field of an error report.

getAnswer
immutable(Answer) getAnswer()

Creates Answer object

toString
string toString()

Meta