pub enum TimeTravel {
Offset(u64),
TimestampNs(i64),
}Expand description
Time-travel coordinate extracted from a SQL string.
Kimberlite supports two forms:
AT OFFSET <n>(Kimberlite extension) — raw log offset.FOR SYSTEM_TIME AS OF '<iso8601>'/AS OF '<iso8601>'(SQL:2011 temporal) — wall-clock timestamp. Resolved to an offset via the audit log’s commit-timestamp index by the caller (seecrate::QueryEngine::query_at_timestamp).
AUDIT-2026-04 L-4: the audit flagged the absence of timestamp syntax as a compliance-vertical blocker (healthcare “what did the chart say on 2026-01-15?”, finance point-in-time reporting). This type is the parser-layer landing for both syntaxes; the timestamp→offset resolver is a runtime-layer concern kept separate to avoid the query crate taking a dependency on the audit log.
Variants§
Offset(u64)
Raw log offset.
TimestampNs(i64)
Unix-nanosecond timestamp — caller must resolve to an offset.
Trait Implementations§
Source§impl Clone for TimeTravel
impl Clone for TimeTravel
Source§fn clone(&self) -> TimeTravel
fn clone(&self) -> TimeTravel
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 TimeTravel
impl Debug for TimeTravel
Source§impl PartialEq for TimeTravel
impl PartialEq for TimeTravel
impl Copy for TimeTravel
impl Eq for TimeTravel
impl StructuralPartialEq for TimeTravel
Auto Trait Implementations§
impl Freeze for TimeTravel
impl RefUnwindSafe for TimeTravel
impl Send for TimeTravel
impl Sync for TimeTravel
impl Unpin for TimeTravel
impl UnsafeUnpin for TimeTravel
impl UnwindSafe for TimeTravel
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