Trait oracle::FromSql [] [src]

pub trait FromSql {
    fn from_sql(val: &SqlValue) -> Result<Self>
    where
        Self: Sized
; }

A trait to convert Oracle values to rust values.

Values in Oracle are converted to Rust type as possible as it can. The following table indicates supported conversion.

Oracle Type Rust Type
CHAR, NCHAR, VARCHAR2, NVARCHAR2 String
i8, i16, i32, i64, u8, u16, u32, u64 by String.parse()
... ...

This conversion is used also to get values from output parameters.

Required Methods

Implementations on Foreign Types

impl FromSql for DateTime<Utc>
[src]

impl FromSql for DateTime<Local>
[src]

impl FromSql for DateTime<FixedOffset>
[src]

impl FromSql for Date<Utc>
[src]

impl FromSql for Date<Local>
[src]

impl FromSql for Date<FixedOffset>
[src]

impl FromSql for NaiveDateTime
[src]

impl FromSql for NaiveDate
[src]

impl FromSql for Duration
[src]

impl FromSql for i8
[src]

impl FromSql for i16
[src]

impl FromSql for i32
[src]

impl FromSql for i64
[src]

impl FromSql for u8
[src]

impl FromSql for u16
[src]

impl FromSql for u32
[src]

impl FromSql for u64
[src]

impl FromSql for f64
[src]

impl FromSql for f32
[src]

impl FromSql for bool
[src]

impl FromSql for String
[src]

impl FromSql for Vec<u8>
[src]

impl<T: FromSql> FromSql for Option<T>
[src]

Implementors