pub enum OracleDataType {
Show 14 variants
Number {
precision: Option<u32>,
scale: Option<i32>,
},
BinaryFloat,
BinaryDouble,
Float {
precision: Option<u32>,
},
Character {
kind: OracleCharacterKind,
length: Option<u32>,
semantics: Option<OracleCharacterLengthSemantics>,
},
Date,
Timestamp {
precision: Option<u32>,
timezone: OracleTimestampTimeZone,
},
IntervalYearToMonth {
year_precision: Option<u32>,
},
IntervalDayToSecond {
day_precision: Option<u32>,
fractional_seconds_precision: Option<u32>,
},
Clob {
national: bool,
},
Blob,
Raw {
length: Option<u32>,
},
Long {
raw: bool,
},
RowId,
}Expand description
Oracle-specific data types whose semantics cannot be represented losslessly by the
generic DataType variants.
Keeping these types structured allows the Oracle parser to retain details such as a
negative NUMBER scale, BYTE/CHAR length semantics, interval precisions, and
TIMESTAMP WITH LOCAL TIME ZONE until the target dialect is known.
Variants§
Number
BinaryFloat
BinaryDouble
Float
Character
Date
Timestamp
IntervalYearToMonth
IntervalDayToSecond
Clob
Blob
Raw
Long
RowId
Trait Implementations§
Source§impl Clone for OracleDataType
impl Clone for OracleDataType
Source§fn clone(&self) -> OracleDataType
fn clone(&self) -> OracleDataType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OracleDataType
impl Debug for OracleDataType
Source§impl<'de> Deserialize<'de> for OracleDataType
impl<'de> Deserialize<'de> for OracleDataType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OracleDataType
impl PartialEq for OracleDataType
Source§impl Serialize for OracleDataType
impl Serialize for OracleDataType
impl StructuralPartialEq for OracleDataType
Auto Trait Implementations§
impl Freeze for OracleDataType
impl RefUnwindSafe for OracleDataType
impl Send for OracleDataType
impl Sync for OracleDataType
impl Unpin for OracleDataType
impl UnsafeUnpin for OracleDataType
impl UnwindSafe for OracleDataType
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