Skip to main content

row_to_json

Function row_to_json 

Source
pub fn row_to_json(table: &str, id: &str, body_text: &str) -> Result<Value>
Expand description

Decode a SQL row (id, body) into Valence JSON record shape.

ยงErrors

Currently infallible; returns Ok with an empty object body if JSON parse fails.