QuackDB.Interval (quackdb v0.2.0)

Copy Markdown View Source

DuckDB interval value preserving month, day, and microsecond components.

DuckDB stores intervals as three independent components instead of a single duration because months and days do not have fixed microsecond lengths.

Summary

Types

t()

@type t() :: %QuackDB.Interval{
  days: integer(),
  microseconds: integer(),
  months: integer()
}

Functions

new(months \\ 0, days \\ 0, microseconds \\ 0)

@spec new(integer(), integer(), integer()) :: t()

Builds a DuckDB interval value.