Skip to main content

decode_cell

Function decode_cell 

Source
pub fn decode_cell(
    raw: Option<&str>,
    column: &ColumnType,
) -> Result<CellValue, WireError>
Expand description

Decode one data cell against its ColumnType. raw is None for SQL NULL.

ยงErrors

Returns a WireError when the cell does not match its declared type (e.g. a non-numeric DATE, a malformed TIMESTAMP_TZ, or odd-length BINARY).