Skip to main content

RowExt

Trait RowExt 

Source
pub trait RowExt {
    // Required method
    fn try_get_column<'a, T>(&'a self, column: &str) -> CheckResult<T>
       where T: FromSql<'a>;
}
Expand description

Extension trait for accessing row columns with better error handling.

Required Methods§

Source

fn try_get_column<'a, T>(&'a self, column: &str) -> CheckResult<T>
where T: FromSql<'a>,

Get a column value by name, returning a CheckError on failure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RowExt for Row

Source§

fn try_get_column<'a, T>(&'a self, column: &str) -> CheckResult<T>
where T: FromSql<'a>,

Implementors§