Liking cljdoc? Tell your friends :D

puppetlabs.puppetdb.query.events

SQL/query-related functions for events

SQL/query-related functions for events
raw docstring

default-selectclj

(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.
sourceraw docstring

distinct-selectclj

(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.
sourceraw docstring

legacy-query->sqlclj

(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.
sourceraw docstring

munge-result-rowsclj

(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.
sourceraw docstring

query->sqlclj

(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.
sourceraw docstring

with-latest-eventsclj

(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
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close