Skip to main content

run_select_jsonlines

Function run_select_jsonlines 

Source
pub fn run_select_jsonlines(
    sql: &str,
    body: &[u8],
    output: SelectOutputFormat,
) -> Result<Vec<u8>, SelectError>
Expand description

Run a Select against a JSON-Lines body ({...}\n{...}\n...). One row per top-level JSON object. Nested values are stringified for CSV output; for JSON output, the projected fields are re-emitted with their original JSON literal.