SQL/query-related functions for events
SQL/query-related functions for events
(default-select select-fields where params)Build the default SELECT statement that we use in the common case. Returns a two-item vector whose first value is the SQL string and whose second value is a list of parameters for the SQL query.
Build the default SELECT statement that we use in the common case. Returns a two-item vector whose first value is the SQL string and whose second value is a list of parameters for the SQL query.
(distinct-select select-fields params distinct-start-time distinct-end-time)Build the SELECT statement that we use in the distinct-resources case (where
we are filtering out multiple events on the same resource on the same node).
Returns a two-item vector whose first value is the SQL string and whose second value
is a list of parameters for the SQL query.
Build the SELECT statement that we use in the `distinct-resources` case (where we are filtering out multiple events on the same resource on the same node). Returns a two-item vector whose first value is the SQL string and whose second value is a list of parameters for the SQL query.
(legacy-query->sql will-union? version query query-options)Compile a resource event query into an SQL expression.
Compile a resource event `query` into an SQL expression.
(munge-result-rows _ _)Inputs: [_ _]
Returns a function that munges the resulting rows ready for final presentation.
Inputs: [_ _] Returns a function that munges the resulting rows ready for final presentation.
(query->sql version query query-options)(query->sql will-union? version query query-options)Compile a resource event query into an SQL expression.
Compile a resource event `query` into an SQL expression.
(with-latest-events query where)(with-latest-events query where latest-report-clause)CTE to wrap unioned queries when distinct_resources is used
CTE to wrap unioned queries when distinct_resources is used
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 |