Trait odbc_api::handles::CData [−][src]
Provides description of C type layout and pointers to it. Used to bind and buffers to ODBC statements.
Required methods
fn cdata_type(&self) -> CDataType
[src]
The identifier of the C data type of the value buffer. When it is retrieving data from the
data source with fetch
, the driver converts the data to this type. When it sends data to
the source, the driver converts the data from this type.
fn indicator_ptr(&self) -> *const isize
[src]
Indicates the length of variable sized types. May be zero for fixed sized types.
fn value_ptr(&self) -> *const c_void
[src]
Pointer to a value corresponding to the one described by cdata_type
.
fn buffer_length(&self) -> isize
[src]
Maximum length of the type. It is required to index values in bound buffers, if more than
one parameter is bound. Can be set to zero for types not bound as parameter arrays, i.e.
CStr
.
Implementations on Foreign Types
impl CData for f64
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for f32
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for Date
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for Timestamp
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for Time
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for Numeric
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for i16
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for u16
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for i32
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for u32
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for i8
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for u8
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for i64
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for u64
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl<T> CData for Vec<T> where
T: Pod,
[src]
T: Pod,
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
Implementors
impl CData for TextColumn
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for VarCharRef<'_>
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl CData for Bit
[src]
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl<B> CData for VarChar<B> where
B: Borrow<[u8]>,
[src]
B: Borrow<[u8]>,
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl<T> CData for WithDataType<T> where
T: CData,
[src]
T: CData,
fn cdata_type(&self) -> CDataType
[src]
fn indicator_ptr(&self) -> *const isize
[src]
fn value_ptr(&self) -> *const c_void
[src]
fn buffer_length(&self) -> isize
[src]
impl<T> CData for Nullable<T> where
T: Pod,
[src]
T: Pod,