Skip to main content

CDataType

Enum CDataType 

Source
#[repr(i16)]
pub enum CDataType {
Show 40 variants Ard = -99, Apd = -100, UTinyInt = -28, UBigInt = -27, STinyInt = -26, SBigInt = -25, ULong = -18, UShort = -17, SLong = -16, SShort = -15, Guid = -11, WChar = -8, Bit = -7, Binary = -2, Char = 1, Numeric = 2, Float = 7, Double = 8, Date = 9, Time = 10, TimeStamp = 11, TypeDate = 91, TypeTime = 92, TypeTimestamp = 93, Default = 99, IntervalYear = 101, IntervalMonth = 102, IntervalDay = 103, IntervalHour = 104, IntervalMinute = 105, IntervalSecond = 106, IntervalYearToMonth = 107, IntervalDayToHour = 108, IntervalDayToMinute = 109, IntervalDayToSecond = 110, IntervalHourToMinute = 111, IntervalHourToSecond = 112, IntervalMinuteToSecond = 113, SsTime2 = 16_384, SsTimestampOffset = 16_385,
}
Expand description

The C data type is specified in the SQLBindCol and SQLGetData functions with the TargetType argument and in the SQLBindParameter function with the ValueType argument.

Variants§

§

Ard = -99

SQL_ARD_TYPE

§

Apd = -100

SQL_APD_TYPE

§

UTinyInt = -28

§

UBigInt = -27

§

STinyInt = -26

§

SBigInt = -25

§

ULong = -18

§

UShort = -17

§

SLong = -16

§

SShort = -15

§

Guid = -11

§

WChar = -8

§

Bit = -7

§

Binary = -2

§

Char = 1

SQLCHAR - CHAR, VARCHAR, DECIMAL, NUMERIC

§

Numeric = 2

§

Float = 7

§

Double = 8

§

Date = 9

§

Time = 10

§

TimeStamp = 11

§

TypeDate = 91

SQL_TYPE_DATE

§

TypeTime = 92

SQL_TYPE_TIME

§

TypeTimestamp = 93

SQL_TYPE_TIMESTAMP

§

Default = 99

§

IntervalYear = 101

§

IntervalMonth = 102

§

IntervalDay = 103

§

IntervalHour = 104

§

IntervalMinute = 105

§

IntervalSecond = 106

§

IntervalYearToMonth = 107

§

IntervalDayToHour = 108

§

IntervalDayToMinute = 109

§

IntervalDayToSecond = 110

§

IntervalHourToMinute = 111

§

IntervalHourToSecond = 112

§

IntervalMinuteToSecond = 113

§

SsTime2 = 16_384

§

SsTimestampOffset = 16_385

Trait Implementations§

Source§

impl Clone for CDataType

Source§

fn clone(&self) -> CDataType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CDataType

Source§

impl Debug for CDataType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CDataType

Source§

impl PartialEq for CDataType

Source§

fn eq(&self, other: &CDataType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for CDataType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.