pub unsafe trait OdbcType<'a>: Sized {
    // Required methods
    fn sql_data_type() -> SqlDataType;
    fn c_data_type() -> SqlCDataType;
    fn convert(_: &'a [u8]) -> Self;
    fn column_size(&self) -> u64;
    fn value_ptr(&self) -> *mut c_void;

    // Provided methods
    fn null_bytes_count() -> usize { ... }
    fn decimal_digits(&self) -> i16 { ... }
}

Required Methods§

Provided Methods§

Implementations on Foreign Types§

source§

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

source§

impl<'a> OdbcType<'a> for i32

source§

impl<'a> OdbcType<'a> for String

source§

impl<'a> OdbcType<'a> for u16

source§

impl<'a> OdbcType<'a> for u8

source§

impl<'a> OdbcType<'a> for Vec<u8, Global>

source§

impl<'a> OdbcType<'a> for i8

source§

impl<'a> OdbcType<'a> for f32

source§

impl<'a> OdbcType<'a> for u64

source§

impl<'a> OdbcType<'a> for bool

source§

impl<'a> OdbcType<'a> for &'a str

source§

impl<'a> OdbcType<'a> for f64

source§

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

source§

impl<'a> OdbcType<'a> for u32

source§

impl<'a> OdbcType<'a> for i64

source§

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

source§

impl<'a> OdbcType<'a> for CString

source§

impl<'a> OdbcType<'a> for Vec<u16, Global>

source§

impl<'a> OdbcType<'a> for i16

Implementors§