Skip to main content

into_row_error

Function into_row_error 

Source
pub fn into_row_error<T, E: Display>(
    column: &str,
    res: Result<T, E>,
) -> Result<T, RowError>
Expand description

Map a driver-level error into a RowError::TypeConversion tagged with the column the caller asked for. Shared by every driver’s RowRef bridge so the diagnostic message shape is identical across Postgres, SQLite, MySQL, and MSSQL. The happy path is an unchanged Ok(value).