[][src]Trait odbc_safe::CDataType

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; }

See [C Data Types in ODBC][1] [1]: https://docs.microsoft.com/sql/odbc/reference/develop-app/c-data-types-in-odbc

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.

Loading content...

Implementations on Foreign Types

impl CDataType for [SQLCHAR][src]

impl CDataType for SQLSMALLINT[src]

impl CDataType for SQLUSMALLINT[src]

impl CDataType for SQLINTEGER[src]

impl CDataType for SQLUINTEGER[src]

impl CDataType for f32[src]

impl CDataType for f64[src]

impl CDataType for i8[src]

impl CDataType for SQLCHAR[src]

impl CDataType for i64[src]

impl CDataType for u64[src]

Loading content...

Implementors

Loading content...