#[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 PartialEq for CDataType
impl PartialEq for CDataType
impl Copy for CDataType
impl Eq for CDataType
impl StructuralEq for CDataType
impl StructuralPartialEq for CDataType
Auto Trait Implementations§
impl RefUnwindSafe for CDataType
impl Send for CDataType
impl Sync for CDataType
impl Unpin for CDataType
impl UnwindSafe for CDataType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more