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: SqlTypeMapping>(
        &self,
        column: &str,
    ) -> Result<Option<T>, OrmError> { ... }
    fn get_required_typed<T: SqlTypeMapping>(
        &self,
        column: &str,
    ) -> Result<T, OrmError> { ... }
}
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: SqlTypeMapping>( &self, column: &str, ) -> Result<Option<T>, OrmError>

Source

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

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.

Implementors§