[][src]Trait oracle::ToSqlNull

pub trait ToSqlNull {
    fn oratype_for_null() -> Result<OracleType>;
}

A trait specifying Oracle type to bind a null value.

This trait is used only when binding a None value of Option<T>. The type of the null value is determined by the rust type.

Rust TypeOracle Type
str, Stringnvarchar2(0)
i8, i16, i32, i64, u8, u16, u32, u64, f32, f64number
Vec<u8>raw(0)
boolboolean (PL/SQL only)
Timestamptimestamp(9) with time zone
IntervalDSinterval day(9) to second(9)
IntervalYMinterval year(9) to month

When chrono feature is enabled, the followings are added.

Rust TypeOracle Type
chrono::Datetimestamp(0) with time zone
chrono::DateTimetimestamp(9) with time zone
chrono::naive::NaiveDatetimestamp(0)
chrono::naive::NaiveDateTimetimestamp(9)
chrono::Durationinterval day(9) to second(9)

Required methods

Loading content...

Implementations on Foreign Types

impl ToSqlNull for i8[src]

impl ToSqlNull for i16[src]

impl ToSqlNull for i32[src]

impl ToSqlNull for i64[src]

impl ToSqlNull for isize[src]

impl ToSqlNull for u8[src]

impl ToSqlNull for u16[src]

impl ToSqlNull for u32[src]

impl ToSqlNull for u64[src]

impl ToSqlNull for usize[src]

impl ToSqlNull for f64[src]

impl ToSqlNull for f32[src]

impl ToSqlNull for bool[src]

impl ToSqlNull for String[src]

impl ToSqlNull for Vec<u8>[src]

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

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

Loading content...

Implementors

Loading content...