A declarative query and projection toolkit for civil-date data. Queries are ordinary EDN values; this namespace never evaluates query forms.
A declarative query and projection toolkit for civil-date data. Queries are ordinary EDN values; this namespace never evaluates query forms.
(annotate-boundaries)Return a transducer that adds calendar boundary flags to date records.
Return a transducer that adds calendar boundary flags to date records.
(calendar-windows period)Return a transducer that emits vectors of consecutive records grouped by :date, :month, :quarter, :year, or :iso-week. Input order is preserved.
Return a transducer that emits vectors of consecutive records grouped by :date, :month, :quarter, :year, or :iso-week. Input order is preserved.
(compile-query query)Compile the streaming-compatible query portion to a transducer. Global ordering and grouping are intentionally handled by execute, which reports their materialization cost in explain.
Compile the streaming-compatible query portion to a transducer. Global ordering and grouping are intentionally handled by execute, which reports their materialization cost in explain.
(execute query)(execute query input)Execute a query over date or date-record input. Global order-by materializes; use explain to inspect that requirement before choosing an input size.
Execute a query over date or date-record input. Global order-by materializes; use explain to inspect that requirement before choosing an input size.
(explain query)Return a deterministic EDN map describing the normalized execution plan.
Return a deterministic EDN map describing the normalized execution plan.
(read-query s)Read query data from EDN text using clojure.edn/read-string. No tagged readers are enabled. Callers should impose input-size limits at boundaries.
Read query data from EDN text using clojure.edn/read-string. No tagged readers are enabled. Callers should impose input-size limits at boundaries.
(validate-query query)Validate query structure and return normalized, date-coerced query data.
Validate query structure and return normalized, date-coerced query data.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |