Tempo. SQL
(Tempo SQL v0.1.0)
View Source
Top-level namespace for ex_tempo_sql — Ecto types and migration
helpers that persist Tempo values as PostgreSQL range types.
See the README for the installation walkthrough and the storage contract that spells out which Tempo values round-trip cleanly.
The entry-point modules are:
Tempo.Ecto.Interval— stores aTempo.Interval.t/0aststzrange.Tempo.Ecto.IntervalSet— stores aTempo.IntervalSet.t/0aststzmultirange.Tempo.Ecto.Tempo— stores a bareTempo.t/0by materialising it throughTempo.to_interval/1and then delegating toTempo.Ecto.Interval.Tempo.SQL.Migration—add :window, Tempo.Intervalhelper for Ecto migrations.Tempo.Ecto.QueryAPI— Allen-named query fragments (contains/2,overlaps/2,meets/2) backed by Postgres range operators.