Struct pg_async::PgRow [] [src]

pub struct PgRow<'a>(_, _);

Methods

impl<'a> PgRow<'a>
[src]

True if the value is NULL.

PostgreSQL internal OID number of the column type.

Returns the column name associated with the given column number. Column numbers start at 0.

Return this row's number withing the result.

Returns the number of columns in the row. Row numbers start at 0.

Returns an empty array if the value is NULL.

Returns an empty string if the value is NULL.

Binary data unescaped from a bytea column.

Converts the column into JSON.

  • column - The number of the column which value is to be converted to JSON. 0-based.
  • name - The name of the column. To make the errors more verbose if they'd happen.

Converts the row into JSON, {$name: $value, ...}.