pub enum ExasolType {
Boolean,
Char {
size: usize,
},
Varchar {
size: usize,
},
Decimal {
precision: u8,
scale: i8,
},
Double,
Date,
Timestamp {
with_local_time_zone: bool,
},
IntervalYearToMonth,
IntervalDayToSecond {
precision: u8,
},
Geometry {
srid: Option<i32>,
},
Hashtype {
byte_size: usize,
},
}Expand description
Exasol data type representation.
Variants§
Boolean
BOOLEAN type
Char
CHAR(n) type
Varchar
VARCHAR(n) type
Decimal
DECIMAL(p, s) type
Double
DOUBLE PRECISION type
Date
DATE type
Timestamp
TIMESTAMP type
IntervalYearToMonth
INTERVAL YEAR TO MONTH
IntervalDayToSecond
INTERVAL DAY TO SECOND
Geometry
GEOMETRY type
Hashtype
HASHTYPE type (for hash values)
Implementations§
Source§impl ExasolType
impl ExasolType
Sourcepub fn to_ddl_type(&self) -> String
pub fn to_ddl_type(&self) -> String
Convert this Exasol type to a DDL type string suitable for CREATE TABLE statements.
§Returns
A string representing the Exasol DDL type, e.g., “VARCHAR(100)”, “DECIMAL(18,2)”.
Trait Implementations§
Source§impl Clone for ExasolType
impl Clone for ExasolType
Source§fn clone(&self) -> ExasolType
fn clone(&self) -> ExasolType
Returns a duplicate of the value. Read more
1.0.0 · 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 ExasolType
impl Debug for ExasolType
Source§impl<'de> Deserialize<'de> for ExasolType
impl<'de> Deserialize<'de> for ExasolType
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 ExasolType
impl PartialEq for ExasolType
Source§impl Serialize for ExasolType
impl Serialize for ExasolType
impl Eq for ExasolType
impl StructuralPartialEq for ExasolType
Auto Trait Implementations§
impl Freeze for ExasolType
impl RefUnwindSafe for ExasolType
impl Send for ExasolType
impl Sync for ExasolType
impl Unpin for ExasolType
impl UnsafeUnpin for ExasolType
impl UnwindSafe for ExasolType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.