[][src]Trait sibyl::ToSql

pub trait ToSql {
    fn to_sql(&self) -> (u16, *const c_void, usize);
}

A trait for types that can be used as SQL IN arguments

Required methods

fn to_sql(&self) -> (u16, *const c_void, usize)

Returns a tuple with (SQLT type, pointer to the data buffer, length of the data in the buffer)

Loading content...

Implementations on Foreign Types

impl ToSql for i8[src]

impl ToSql for i16[src]

impl ToSql for i32[src]

impl ToSql for i64[src]

impl ToSql for isize[src]

impl ToSql for u8[src]

impl ToSql for u16[src]

impl ToSql for u32[src]

impl ToSql for u64[src]

impl ToSql for usize[src]

impl ToSql for f32[src]

impl ToSql for f64[src]

impl ToSql for str[src]

impl ToSql for String[src]

impl ToSql for [u8][src]

impl ToSql for Vec<u8>[src]

impl<T: ToSql + ?Sized, '_> ToSql for &'_ T[src]

Loading content...

Implementors

impl ToSql for RowID[src]

impl<'_> ToSql for Date<'_>[src]

impl<'_> ToSql for Number<'_>[src]

impl<'_> ToSql for Raw<'_>[src]

impl<'_> ToSql for Varchar<'_>[src]

Loading content...