[][src]Trait odbc::OdbcType

pub unsafe trait OdbcType<'a>: Sized {
    fn sql_data_type() -> SqlDataType;
fn c_data_type() -> SqlCDataType;
fn convert(_: &'a [u8]) -> Self;
fn column_size(&self) -> SQLULEN;
fn value_ptr(&self) -> SQLPOINTER;
fn encoded_value(&self) -> EncodedValue; fn null_bytes_count() -> usize { ... }
fn decimal_digits(&self) -> SQLSMALLINT { ... } }

Required methods

fn sql_data_type() -> SqlDataType

fn c_data_type() -> SqlCDataType

fn convert(_: &'a [u8]) -> Self

fn column_size(&self) -> SQLULEN

fn value_ptr(&self) -> SQLPOINTER

fn encoded_value(&self) -> EncodedValue

Loading content...

Provided methods

fn null_bytes_count() -> usize

fn decimal_digits(&self) -> SQLSMALLINT

Loading content...

Implementations on Foreign Types

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

impl<'a> OdbcType<'a> for Vec<u8>[src]

impl<'a> OdbcType<'a> for &'a [u16][src]

impl<'a> OdbcType<'a> for Vec<u16>[src]

impl<'a> OdbcType<'a> for CString[src]

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

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

impl<'a> OdbcType<'a> for Cow<'a, str>[src]

impl<'a> OdbcType<'a> for u8[src]

impl<'a> OdbcType<'a> for i8[src]

impl<'a> OdbcType<'a> for i16[src]

impl<'a> OdbcType<'a> for u16[src]

impl<'a> OdbcType<'a> for i32[src]

impl<'a> OdbcType<'a> for u32[src]

impl<'a> OdbcType<'a> for i64[src]

impl<'a> OdbcType<'a> for u64[src]

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

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

impl<'a> OdbcType<'a> for bool[src]

impl<'a, T> OdbcType<'a> for Option<T> where
    T: OdbcType<'a>, 
[src]

Loading content...

Implementors

impl<'a> OdbcType<'a> for SqlDate[src]

impl<'a> OdbcType<'a> for SqlSsTime2[src]

impl<'a> OdbcType<'a> for SqlTime[src]

impl<'a> OdbcType<'a> for SqlTimestamp[src]

Loading content...