Skip to main content

Row

Trait Row 

Source
pub trait Row {
    // Required method
    fn try_get(&self, column: &str) -> Result<Option<SqlValue>, OrmError>;

    // Provided methods
    fn get_required(&self, column: &str) -> Result<SqlValue, OrmError> { ... }
    fn try_get_typed<T>(&self, column: &str) -> Result<Option<T>, OrmError>
       where T: SqlTypeMapping { ... }
    fn get_required_typed<T>(&self, column: &str) -> Result<T, OrmError>
       where T: SqlTypeMapping { ... }
}
Expand description

Row abstraction used by the core mapping contracts without depending on Tiberius.

Required Methods§

Source

fn try_get(&self, column: &str) -> Result<Option<SqlValue>, OrmError>

Provided Methods§

Source

fn get_required(&self, column: &str) -> Result<SqlValue, OrmError>

Source

fn try_get_typed<T>(&self, column: &str) -> Result<Option<T>, OrmError>
where T: SqlTypeMapping,

Source

fn get_required_typed<T>(&self, column: &str) -> Result<T, OrmError>
where T: SqlTypeMapping,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Row for MssqlRow<'_>

Source§

fn try_get(&self, column: &str) -> Result<Option<SqlValue>, OrmError>

Implementors§