Enum datafusion_sql::unparser::dialect::IntervalStyle
source · pub enum IntervalStyle {
PostgresVerbose,
SQLStandard,
MySQL,
}
Expand description
IntervalStyle
to use for unparsing
https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-INTERVAL-INPUT different DBMS follows different standards, popular ones are: postgres_verbose: ‘2 years 15 months 100 weeks 99 hours 123456789 milliseconds’ which is compatible with arrow display format, as well as duckdb sql standard format is ‘1-2’ for year-month, or ‘1 10:10:10.123456’ for day-time https://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
Variants§
Trait Implementations§
source§impl Clone for IntervalStyle
impl Clone for IntervalStyle
source§fn clone(&self) -> IntervalStyle
fn clone(&self) -> IntervalStyle
Returns a copy 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 moreimpl Copy for IntervalStyle
Auto Trait Implementations§
impl Freeze for IntervalStyle
impl RefUnwindSafe for IntervalStyle
impl Send for IntervalStyle
impl Sync for IntervalStyle
impl Unpin for IntervalStyle
impl UnwindSafe for IntervalStyle
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)