vibesql_types/temporal/
mod.rs

1//! Temporal types for SQL:1999
2//!
3//! This module contains all date/time related types including:
4//! - DATE
5//! - TIME
6//! - TIMESTAMP
7//! - INTERVAL
8
9mod date;
10mod interval;
11mod time;
12mod timestamp;
13
14pub use date::Date;
15pub use interval::Interval;
16pub use time::Time;
17pub use timestamp::Timestamp;
18
19/// SQL:1999 Interval Fields
20///
21/// Represents the fields that can be used in INTERVAL types
22#[derive(Debug, Clone, PartialEq, Eq)]
23pub enum IntervalField {
24    Year,
25    Month,
26    Day,
27    Hour,
28    Minute,
29    Second,
30}