Skip to main content

read_column

Function read_column 

Source
pub fn read_column<T: DbType>(
    row: &Row,
    prefix: &str,
    column: &str,
) -> Result<T, QueryError>
Expand description

Read prefix + column from row, decoding it as T.

ยงErrors

QueryError::Decode if the column is missing or has the wrong type.