Skip to main content

row_to_json

Function row_to_json 

Source
pub fn row_to_json(row: &PgRow) -> Value
Expand description

Convert a sqlx row to a JSON object, decoding each column by its PostgreSQL type.

A column whose value cannot be decoded becomes null rather than failing the whole row.