Skip to main content

end_reason

Function end_reason 

Source
fn end_reason(
    result: &Result<ExecuteResponse, AdapterError>,
) -> StatementEndedExecutionReason
Expand description

Maps an execution outcome to the reason to record for it.

The responses whose end is logged elsewhere are filtered out first: their StatementEndedExecutionReason conversion panics, and this runs for every statement the session task executes, so that panic would take down the connection.