Skip to main content

row_to_json

Function row_to_json 

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

Decodes an entire row into a {column: value} JSON object. sqlx::Any has already normalized every backend’s native types into one of 9 kinds by the time a row reaches here, so this needs no per-backend branching at all.