pub enum IntervalDataType {
YearMonth,
DayTime,
}Expand description
Interval/duration type for time spans.
Maps to: INTERVAL (PostgreSQL, Snowflake, Databricks), not directly supported in
SQL Server/ClickHouse.
§Example
use razeri_plugin_contract::data_type::IntervalDataType;
let ym = IntervalDataType::YearMonth;
let dt = IntervalDataType::DayTime;
assert_eq!(format!("{:?}", ym), "YearMonth");
assert_eq!(format!("{:?}", dt), "DayTime");Variants§
YearMonth
Year to month intervals.
DayTime
Day to second intervals (with optional fractional seconds precision).
Trait Implementations§
Source§impl Clone for IntervalDataType
impl Clone for IntervalDataType
impl Copy for IntervalDataType
Source§impl Debug for IntervalDataType
impl Debug for IntervalDataType
impl Eq for IntervalDataType
Source§impl Hash for IntervalDataType
impl Hash for IntervalDataType
Source§impl PartialEq for IntervalDataType
impl PartialEq for IntervalDataType
impl StructuralPartialEq for IntervalDataType
Auto Trait Implementations§
impl Freeze for IntervalDataType
impl RefUnwindSafe for IntervalDataType
impl Send for IntervalDataType
impl Sync for IntervalDataType
impl Unpin for IntervalDataType
impl UnsafeUnpin for IntervalDataType
impl UnwindSafe for IntervalDataType
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