risingwave_connector::parser

Function mysql_datum_to_rw_datum

source
pub fn mysql_datum_to_rw_datum(
    mysql_row: &mut Row,
    mysql_datum_index: usize,
    column_name: &str,
    rw_data_type: &DataType,
) -> Result<Datum, Error>
Expand description

The decoding result can be interpreted as follows: Ok(value) => The value was found and successfully decoded. Err(error) => The value was found but could not be decoded, either because it was not supported, or there was an error during conversion.