CDataType

Trait CDataType 

Source
pub unsafe trait CDataType {
    // Required methods
    fn c_data_type() -> SqlCDataType;
    fn sql_ptr(&self) -> *const c_void;
    fn mut_sql_ptr(&mut self) -> SQLPOINTER;
    fn buffer_len(&self) -> SQLLEN;
}
Expand description

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

Required Methods§

Source

fn c_data_type() -> SqlCDataType

C Data type of the buffer returned by mut_sql_ptr().

Source

fn sql_ptr(&self) -> *const c_void

Const sql pointer

Source

fn mut_sql_ptr(&mut self) -> SQLPOINTER

Pointer to the buffer in which should be filled with data.

Source

fn buffer_len(&self) -> SQLLEN

Length of the buffer returned by mut_sql_ptr() in bytes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl CDataType for f32

Source§

impl CDataType for f64

Source§

impl CDataType for i8

Source§

impl CDataType for i64

Source§

impl CDataType for u64

Source§

impl CDataType for SQLCHAR

Source§

impl CDataType for SQLINTEGER

Source§

impl CDataType for SQLSMALLINT

Source§

impl CDataType for SQLUINTEGER

Source§

impl CDataType for SQLUSMALLINT

Source§

impl CDataType for [SQLCHAR]

Implementors§