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.

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.

Really old printing routines.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.