Struct libpq::result::Result [−][src]
pub struct Result { /* fields omitted */ }
Implementations
Constructs an empty Result
object with the given status.
See PQmakeEmptyPGresult.
Returns the result status of the command.
See PQresultStatus.
Returns the error message associated with the command, or an empty string if there was no error.
See PQresultErrorMessage.
Returns a reformatted version of the error message associated with a libpq::Result
object.
See PQresultErrorField.
Returns the number of rows (tuples) in the query result.
See PQntuples.
Returns the number of columns (fields) in each row of the query result.
See PQnfields.
Returns the column name associated with the given column number.
See PQfname.
Returns the column number associated with the given column name.
See PQfnumber.
Returns the OID of the table from which the given column was fetched.
See PQftable.
Returns the column number (within its table) of the column making up the specified query result column.
See PQftablecol.
Returns the format code indicating the format of the given column.
See PQfformat.
Returns the data type associated with the given column number.
See PQftype.
Returns the type modifier of the column associated with the given column number.
See PQfmod.
Returns the size in bytes of the column associated with the given column number.
None
indicates the data type is variable-length.
See PQfsize.
Returns true
if the Result
contains binary data and false
if it contains text data.
See PQbinaryTuples.
Returns a single field value of one row of a Result
.
See PQgetvalue.
Tests a field for a null value.
See PQgetisnull.
Returns the actual length of a field value in bytes.
See PQgetlength.
Returns the number of parameters of a prepared statement.
See PQnparams.
Returns the data type of the indicated statement parameter.
See PQparamtype.
Prints out all the rows and, optionally, the column names to the specified output stream.
See PQprint.
Returns the command status tag from the SQL command that generated the Result
.
See PQcmdStatus.
Returns the number of rows affected by the SQL command.
See PQcmdTuples.
Returns the OID of the inserted row.
See PQoidValue.
👎 Deprecated: This function is deprecated in favor of libpq::Result::oid_value
and is not thread-safe.
This function is deprecated in favor of libpq::Result::oid_value
and is not thread-safe.
See PQoidStatus.
Makes a copy of a Result
object.
See PQcopyResult.
Sets the attributes of a PGresult object.
See PQsetResultAttrs.
Sets a tuple field value of a Result
object.
See PQsetvalue.
Allocate subsidiary storage for a Result
object.
See PQresultAlloc.
Safety
This function return a void*
pointer.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more