[][src]Trait sibyl::FromSql

pub trait FromSql<'a>: Sized {
    fn value(val: &ColumnValue, stmt: &'a dyn Stmt) -> Result<Self>;
}

A trait for types which instances can be created from the returned Oracle values.

Required methods

fn value(val: &ColumnValue, stmt: &'a dyn Stmt) -> Result<Self>

Converts, if possible, data stored in the column buffer into the requested type and returns the instance of it. Returns error if the conversion fails or not defined from the type of the column buffer into a requested type.

Loading content...

Implementations on Foreign Types

impl<'a> FromSql<'a> for String[src]

impl<'a> FromSql<'a> for &'a str[src]

impl<'a> FromSql<'a> for &'a [u8][src]

impl<'a> FromSql<'a> for f32[src]

impl<'a> FromSql<'a> for f64[src]

Loading content...

Implementors

impl<'a> FromSql<'a> for Cursor<'a>[src]

impl<'a> FromSql<'a> for Date<'a>[src]

impl<'a> FromSql<'a> for Number<'a>[src]

impl<'a> FromSql<'a> for BFile<'a>[src]

impl<'a> FromSql<'a> for BLOB<'a>[src]

impl<'a> FromSql<'a> for CLOB<'a>[src]

impl<'a> FromSql<'a> for IntervalDS<'a>[src]

impl<'a> FromSql<'a> for IntervalYM<'a>[src]

impl<'a> FromSql<'a> for Timestamp<'a>[src]

impl<'a> FromSql<'a> for TimestampLTZ<'a>[src]

impl<'a> FromSql<'a> for TimestampTZ<'a>[src]

impl<'a, T: Integer> FromSql<'a> for T[src]

Loading content...