Trait odbc_safe::CDataType
[−]
[src]
pub unsafe trait CDataType { fn c_data_type() -> SqlCDataType; fn sql_ptr(&self) -> *const c_void; fn mut_sql_ptr(&mut self) -> SQLPOINTER; fn buffer_len(&self) -> SQLLEN; }
Required Methods
fn c_data_type() -> SqlCDataType
C Data type of the buffer returned by mut_sql_ptr()
.
fn sql_ptr(&self) -> *const c_void
Const sql pointer
fn mut_sql_ptr(&mut self) -> SQLPOINTER
Pointer to the buffer in which should be filled with data.
fn buffer_len(&self) -> SQLLEN
Length of the buffer returned by mut_sql_ptr()
in bytes.
Implementors
impl CDataType for [SQLCHAR]
impl CDataType for SQLSMALLINT
impl CDataType for SQLUSMALLINT
impl CDataType for SQLINTEGER
impl CDataType for SQLUINTEGER
impl CDataType for f32
impl CDataType for f64
impl CDataType for i8
impl CDataType for SQLCHAR
impl CDataType for i64
impl CDataType for u64