Skip to main content

select_single_rows

Function select_single_rows 

Source
fn select_single_rows(
    results: Vec<SqlResult>,
) -> Result<Vec<Vec<Value>>, McpRequestError>
Expand description

Returns the rows of the single row-returning statement in a response.

A read’s framing statements (BEGIN, SET, COMMIT) report Ok, so only the user’s statement returns rows. Surfaces the first error, and a second row-returning statement is an error rather than a dropped result.