Liking cljdoc? Tell your friends :D
Clojure only.

puppetlabs.puppetdb.query-eng.engine


always-enable-drop-unused-joins?clj

When set to true, act as if the opimization has been requested for every query. This is only intended for testing. Will be set to true if the environment variable PDB_QUERY_OPTIMIZE_DROP_UNUSED_JOINS is set to "always" at startup.

When set to true, act as if the opimization has been requested for
every query.  This is only intended for testing.  Will be set to
true if the environment variable
PDB_QUERY_OPTIMIZE_DROP_UNUSED_JOINS is set to "always" at
startup.
sourceraw docstring

annotate-with-contextclj

(annotate-with-context context)

Add context as meta on each node that is a vector. This associates the the query context assocated to each query clause with it's associated context

Add `context` as meta on each `node` that is a vector. This associates the
the query context assocated to each query clause with it's associated context
sourceraw docstring

ast-path-schemaclj

source

binary-expression?clj

(binary-expression? node)

True if the plan node is a binary expression

True if the plan node is a binary expression
sourceraw docstring

catalog-input-contents-queryclj

Query for the top level catalog-input-contents entity

Query for the top level catalog-input-contents entity
sourceraw docstring

catalog-inputs-queryclj

Query for the catalog-inputs entity

Query for the catalog-inputs entity
sourceraw docstring

catalog-queryclj

Query for the top level catalogs entity

Query for the top level catalogs entity
sourceraw docstring

certname-relationsclj

source

column-schemaclj

Column information: ["value" {:type :string :field fv.value_string ...}]

Column information: ["value" {:type :string :field fv.value_string ...}]
sourceraw docstring

compile-fnexpressionclj

(compile-fnexpression expr)
(compile-fnexpression {:keys [function column params]} alias?)
source

compile-queryclj

(compile-query query-rec
               user-query
               {:keys [include_total explain] :as options}
               target)

Given a user provided query and a Query instance, converts the user provided query to the requested target. Current targets are either :parameterized-plan or :sql. For :sql, returns the SQL and extracted parameters, to be used in a prepared statement. For :parameterized-plan, returns the final plan and parameters that would be used to generate the :sql result.

Given a user provided query and a Query instance, converts the user
provided query to the requested target.  Current targets are
either :parameterized-plan or :sql.  For :sql, returns the SQL and
extracted parameters, to be used in a prepared statement.
For :parameterized-plan, returns the final plan and parameters that
would be used to generate the :sql result.
sourceraw docstring

compile-user-query->sqlclj

(compile-user-query->sql query-rec user-query)
(compile-user-query->sql query-rec user-query options)

Given a user provided query and a Query instance, convert the user provided query to SQL and extract the parameters, to be used in a prepared statement.

Given a user provided query and a Query instance, convert the
user provided query to SQL and extract the parameters, to be used
in a prepared statement.
sourceraw docstring

convert-to-planclj

(convert-to-plan query-rec paging-options user-query)

Converts the given user-query to a query plan that can later be converted into a SQL statement

Converts the given `user-query` to a query plan that can later be converted into
a SQL statement
sourceraw docstring

convert-typeclj

(convert-type column from to)
source

create-extract-nodeclj

(create-extract-node query-rec column expr)

Inputs: [query-rec column expr] Returns: {(s/optional-key :projected-fields) [projection-schema], s/Any s/Any}

Inputs: [query-rec column expr]
Returns: {(s/optional-key :projected-fields) [projection-schema], s/Any s/Any}
sourceraw docstring

create-extract-node*clj

(create-extract-node* {:keys [projections] :as query-rec} column-list expr)

Returns a query-rec that has the correct projection for the given column-list. Updating :projected-fields causes the select in the SQL query to be modified.

Returns a `query-rec` that has the correct projection for the given
`column-list`. Updating :projected-fields causes the select in the SQL query
to be modified.
sourceraw docstring

create-fnexpressionclj

(create-fnexpression [f & args])
source

create-from-nodeclj

(create-from-node entity expr clauses)

Inputs: [entity expr clauses] Returns: {(s/optional-key :projected-fields) [projection-schema], s/Any s/Any}

Create an explicit subquery declaration to mimic the select_<entity> syntax.

Inputs: [entity expr clauses]
Returns: {(s/optional-key :projected-fields) [projection-schema], s/Any s/Any}

Create an explicit subquery declaration to mimic the select_<entity>
 syntax.
sourceraw docstring

create-json-path-extractionclj

(create-json-path-extraction field path)

Given a base json field and a path of keys to traverse, construct the proper SQL query of the form base->'key'->'key2'...

Given a base json field and a path of keys to traverse, construct the proper
SQL query of the form base->'key'->'key2'...
sourceraw docstring

create-json-subtree-projectionclj

(create-json-subtree-projection [top & path :as _parsed-field] projections)
source

create-paging-mapclj

(create-paging-map clauses)

Given a list of clauses [['limit'1 1] ['offset' 1], etc], convert to a map {:limit 1 :offset 1}

Given a list of clauses [['limit'1 1] ['offset' 1], etc], convert to a map
{:limit 1 :offset 1}
sourceraw docstring

default-explain-formclj

source

drop-all-unused-joinsclj

(drop-all-unused-joins {:keys [plan] :as incoming})
source

drop-local-unused-joins-from-queryclj

(drop-local-unused-joins-from-query plan)
source

edges-queryclj

Query for catalog edges

Query for catalog edges
sourceraw docstring

enable-drop-unused-joins-by-default?clj

When true, enable the opimization whenever a query doesn't set the optimize_drop_unused_joins parameter. This will be true if PDB_QUERY_OPTIMIZE_DROP_UNUSED_JOINS is unset or is set to "by-default" at startup, and will be false if it is set to "by-request".

When true, enable the opimization whenever a query doesn't set the
optimize_drop_unused_joins parameter.  This will be true if
PDB_QUERY_OPTIMIZE_DROP_UNUSED_JOINS is unset or is set to
"by-default" at startup, and will be false if it is set to
"by-request".
sourceraw docstring

environments-queryclj

Basic environments query, more useful when used with subqueries

Basic environments query, more useful when used with subqueries
sourceraw docstring

expand-query-nodeclj

(expand-query-node node)

Expands/normalizes the user provided query to a minimal subset of the query language

Expands/normalizes the user provided query to a minimal subset of the
query language
sourceraw docstring

expand-user-queryclj

(expand-user-query user-query)

Expands/translates the query from a user provided one to a normalized query that only contains our lower-level operators. Things like [node active] will be expanded into a full subquery (via the in and extract operators)

Expands/translates the query from a user provided one to a
normalized query that only contains our lower-level operators.
Things like [node active] will be expanded into a full
subquery (via the `in` and `extract` operators)
sourceraw docstring

experimental-entitiesclj

source

extract-all-paramsclj

(extract-all-params plan)

Zip through the query plan, replacing each user provided query parameter with '?' and return the parameters as a vector

Zip through the query plan, replacing each user provided query parameter with '?'
and return the parameters as a vector
sourceraw docstring

extract-depsclj

(extract-deps m plan)
source

extract-expression?clj

(extract-expression? expr)

Returns true if expr is an extract expression

Returns true if expr is an extract expression
sourceraw docstring

extract-function-depsclj

(extract-function-deps plan)
source

extract-paramsclj

(extract-params node state)

Extracts the node's expression value, puts it in state replacing it with ?, used in a prepared statement

Extracts the node's expression value, puts it in state
replacing it with `?`, used in a prepared statement
sourceraw docstring

extract-where-depsclj

(extract-where-deps plan)
source

extract-where-deps-from-clauseclj

(extract-where-deps-from-clause clause plan)
source

fact-contents-coreclj

source

fact-contents-queryclj

Query for fact nodes

Query for fact nodes
sourceraw docstring

fact-names-queryclj

source

fact-paths-queryclj

Query for the fact-paths query, mostly used as a subquery

Query for the fact-paths query, mostly used as a subquery
sourceraw docstring

facts-queryclj

Query structured facts.

Query structured facts.
sourceraw docstring

factsets-queryclj

Query for the top level facts query

Query for the top level facts query
sourceraw docstring

factsets-query-baseclj

source

factsets-with-packages-queryclj

Query for factsets with the package_inventory reconstructed (used for sync)

Query for factsets with the package_inventory reconstructed (used for sync)
sourceraw docstring

field-schemaclj

source

fn-binary-expression->hsqlclj

(fn-binary-expression->hsql op function args)

Produce a predicate that compares the result of a function against a provided value. The operator, function name and its arguments must have already been validated.

Produce a predicate that compares the result of a function against a
provided value. The operator, function name and its arguments must
have already been validated.
sourceraw docstring

get-clauseclj

(get-clause clause clauses)
source

group-by-entries->fieldsclj

(group-by-entries->fields query-rec entries)

Convert a list of group by columns and functions to their true SQL field names.

Convert a list of group by columns and functions to their true SQL field names.
sourceraw docstring

group-by-entry->sql-fieldclj

(group-by-entry->sql-field query-rec column-or-fn-name)

Converts a column into its qualified SQL field name or a function expression into its function name. Throws a bad-query-ex if there is an invalid field or function

Converts a column into its qualified SQL field name or a function
expression into its function name. Throws a bad-query-ex if there is
an invalid field or function
sourceraw docstring

hsql-hash-as-hrefclj

(hsql-hash-as-href entity parent child)
source

hsql-hash-as-strclj

(hsql-hash-as-str column-kw)
source

hsql-uuid-as-strclj

(hsql-uuid-as-str column-keyword)
source

inactive-nodes-queryclj

source

include-projection-dependenciesclj

(include-projection-dependencies proj-info projections)

Returns projections after adding any dependencies of its memebers, i.e. any :depends listed in the query-rec proj-info for the projection.

Returns projections after adding any dependencies of its memebers,
i.e. any :depends listed in the query-rec proj-info for the
projection.
sourceraw docstring

inventory-queryclj

Query for inventory

Query for inventory
sourceraw docstring

json-agg-rowclj

source

latest-report-id-queryclj

Usually used as a subquery of reports

Usually used as a subquery of reports
sourceraw docstring

latest-report-queryclj

Usually used as a subquery of reports

Usually used as a subquery of reports
sourceraw docstring

map->ArrayBinaryExpressionclj

(map->ArrayBinaryExpression m34817)

Factory function for class ArrayBinaryExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class ArrayBinaryExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->ArrayRegexExpressionclj

(map->ArrayRegexExpression m34711)

Factory function for class ArrayRegexExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class ArrayRegexExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->BinaryExpressionclj

(map->BinaryExpression m34545)

Factory function for class BinaryExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class BinaryExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->FnBinaryExpressionclj

(map->FnBinaryExpression m34478)

Factory function for class FnBinaryExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class FnBinaryExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->InArrayExpressionclj

(map->InArrayExpression m34605)

Factory function for class InArrayExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class InArrayExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->InExpressionclj

(map->InExpression m35216)

Factory function for class InExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class InExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->JsonbPathBinaryExpressionclj

(map->JsonbPathBinaryExpression m35089)

Factory function for class JsonbPathBinaryExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class JsonbPathBinaryExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->JsonbScalarRegexExpressionclj

(map->JsonbScalarRegexExpression m35156)

Factory function for class JsonbScalarRegexExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class JsonbScalarRegexExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->JsonContainsExpressionclj

(map->JsonContainsExpression m35029)

Factory function for class JsonContainsExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class JsonContainsExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->NullExpressionclj

(map->NullExpression m34764)

Factory function for class NullExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class NullExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->PathArrayAnyMatchclj

(map->PathArrayAnyMatch m34923)

Factory function for class PathArrayAnyMatch, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class PathArrayAnyMatch, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->PathArrayMatchclj

(map->PathArrayMatch m34870)

Factory function for class PathArrayMatch, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class PathArrayMatch, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->PathArrayRegexMatchclj

(map->PathArrayRegexMatch m34976)

Factory function for class PathArrayRegexMatch, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class PathArrayRegexMatch, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->Queryclj

(map->Query m34355)

Factory function for class Query, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class Query, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

map->RegexExpressionclj

(map->RegexExpression m34658)

Factory function for class RegexExpression, taking a map of keywords to field values, but not much slower than ->x like the clojure.core version. (performance is fixed in Clojure 1.7, so this should eventually be removed.)

Factory function for class RegexExpression, taking a map of keywords to field values, but not much
slower than ->x like the clojure.core version.
(performance is fixed in Clojure 1.7, so this should eventually be removed.)
sourceraw docstring

maybe-add-match-function-filterclj

(maybe-add-match-function-filter operator field value)
source

munge-query-orderingclj

(munge-query-ordering clauses)
source

name-constraintclj

(name-constraint user-query-clause)

If the query clause is either a simple constraint on 'name' or a pure conjunction containing such a constraint, return the first fact name.

If the query clause is either a simple constraint on 'name' or a pure
conjunction containing such a constraint, return the first fact name.
sourceraw docstring

no-type-restriction?clj

(no-type-restriction? expr)

Determine whether an expression already contains a restriction of values to numbers.

Determine whether an expression already contains a restriction of values to
numbers.
sourceraw docstring

nodes-queryclj

Query for nodes entities, mostly used currently for subqueries

Query for nodes entities, mostly used currently for subqueries
sourceraw docstring

nodes-query-baseclj

source

nodes-query-with-fact-expirationclj

Query for nodes entities, mostly used currently for subqueries

Query for nodes entities, mostly used currently for subqueries
sourceraw docstring

not-active-nodes-queryclj

source

numeric-fact-functions?clj

(numeric-fact-functions? clauses)

Determine whether an extract clause contains numeric aggregate functions, implying that the query must be restricted for successful type coercion.

Determine whether an extract clause contains numeric aggregate functions,
implying that the query must be restricted for successful type coercion.
sourceraw docstring

numeric-functionsclj

source

ops-to-lowerclj

(ops-to-lower node state)

Lower cases operators (such as and/or).

Lower cases operators (such as and/or).
sourceraw docstring

optimize-user-queryclj

(optimize-user-query user-query)
source

optimize-user-query-nodeclj

(optimize-user-query-node user-query-node)
source

package-inventory-queryclj

Packages and the machines they are installed on

Packages and the machines they are installed on
sourceraw docstring

packages-queryclj

Basic packages query

Basic packages query
sourceraw docstring

paging-clause?clj

(paging-clause? v)
source

parse-dot-queryclj

(parse-dot-query {:keys [field value] :as node} state)

Transforms a dotted query into a JSON structure appropriate for comparison in the database.

Transforms a dotted query into a JSON structure appropriate
for comparison in the database.
sourceraw docstring

parse-dot-query-with-array-elementsclj

(parse-dot-query-with-array-elements {:keys [field value] :as node} state)

Transforms a dotted query into a JSON structure appropriate for comparison in the database.

Transforms a dotted query into a JSON structure appropriate
for comparison in the database.
sourceraw docstring

parse-query-contextclj

(parse-query-context query warn)

Parses a top-level query with a 'from', validates it and returns the entity and remaining-query in a map.

Parses a top-level query with a 'from', validates it and returns the entity and remaining-query in
a map.
sourceraw docstring

pdb-fns->pg-fnsclj

source

pg-fns->pdb-fnsclj

source

plan->sqlclj

(plan->sql query options)

Convert query to a SQL string

Convert `query` to a SQL string
sourceraw docstring

process-order-byclj

(process-order-by clauses)
source

producers-queryclj

Basic producers query, more useful when used with subqueries

Basic producers query, more useful when used with subqueries
sourceraw docstring

projectable-fieldsclj

(projectable-fields {:keys [projections]})

Returns a list of projectable fields from a query record.

Fields marked as :unprojectable? true are unable to be projected and thus are excluded.

Returns a list of projectable fields from a query record.

Fields marked as :unprojectable? true are unable to be projected and thus are
excluded.
sourceraw docstring

projectable-json-fieldsclj

(projectable-json-fields {:keys [projections]})

Returns a list of fields of queryable json fields that are marked that they support projectable json extraction.

Returns a list of fields of queryable json fields that
are marked that they support projectable json extraction.
sourceraw docstring

projection-schemaclj

Named projection: ["value" {:type :string :field fv.value_string ...}]

Named projection: ["value" {:type :string :field fv.value_string ...}]
sourceraw docstring

push-down-contextclj

(push-down-context context user-query)

Pushes the top level query context down to each query node, throws a bad-query-ex if any unrecognized fields appear in the query

Pushes the top level query context down to each query node, throws a
bad-query-ex if any unrecognized fields appear in the query
sourceraw docstring

queryable-fieldsclj

(queryable-fields {:keys [projections]})

Returns a list of queryable fields from a query record.

These are fields with the setting :queryable? set to true.

Returns a list of queryable fields from a query record.

These are fields with the setting :queryable? set to true.
sourceraw docstring

quote-projectionsclj

(quote-projections projection)
source

remove-elided-nodesclj

(remove-elided-nodes node)

This step removes elided nodes (marked with ::elide by expand-user-query) from and and or clauses.

This step removes elided nodes (marked with ::elide by expand-user-query) from
`and` and `or` clauses.
sourceraw docstring

removeable-clause?clj

(removeable-clause? clause)
source

report-events-queryclj

Query for the top level reports entity

Query for the top level reports entity
sourceraw docstring

report-logs-queryclj

Query intended to be used by the /reports/<hash>/logs endpoint used for digging into the logs for a specific report.

Query intended to be used by the `/reports/<hash>/logs` endpoint
used for digging into the logs for a specific report.
sourceraw docstring

report-metrics-queryclj

Query intended to be used by the /reports/<hash>/metrics endpoint used for digging into the metrics for a specific report.

Query intended to be used by the `/reports/<hash>/metrics` endpoint
used for digging into the metrics for a specific report.
sourceraw docstring

reports-queryclj

Query for the reports entity

Query for the reports entity
sourceraw docstring

required-by-projectionsclj

(required-by-projections plan)
source

resource-params-queryclj

Query for the resource-params query, mostly used as a subquery

Query for the resource-params query, mostly used as a subquery
sourceraw docstring

resources-queryclj

Query for the top level resource entity

Query for the top level resource entity
sourceraw docstring

rewrite-fact-queryclj

(rewrite-fact-query query-rec user-query)

Rewrite fact queries that constrain the fact name to directly extract the value using the json -> operator, by changing the :selection field of the query-rec.

Rewrite fact queries that constrain the fact name to directly
extract the value using the json -> operator, by changing
the :selection field of the query-rec.
sourceraw docstring

simple-binary-operator-checkerclj

A function that will return nil if the query snippet successfully validates, otherwise will return a data structure with error information

A function that will return nil if the query snippet successfully validates, otherwise
will return a data structure with error information
sourceraw docstring

simple-binary-operatorsclj

source

simple-coll?clj

(simple-coll? x)
source

sql-select-for-queryclj

(sql-select-for-query {:keys [projected-fields call selection projections]
                       :as _query})

Returns the honesql representation of the query's select, i.e. {:select expr}.

Returns the honesql representation of the query's select,
i.e. {:select expr}.
sourceraw docstring

SQLGencljprotocol

-plan->sqlclj

(-plan->sql query options)

Given the query plan node, convert it to a SQL string

Given the `query` plan node, convert it to a SQL string
source

strict-map->ArrayBinaryExpressionclj

(strict-map->ArrayBinaryExpression m34818 & [drop-extra-keys?__3495__auto__])

Factory function for class ArrayBinaryExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class ArrayBinaryExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->ArrayRegexExpressionclj

(strict-map->ArrayRegexExpression m34712 & [drop-extra-keys?__3495__auto__])

Factory function for class ArrayRegexExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class ArrayRegexExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->BinaryExpressionclj

(strict-map->BinaryExpression m34546 & [drop-extra-keys?__3495__auto__])

Factory function for class BinaryExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class BinaryExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->FnBinaryExpressionclj

(strict-map->FnBinaryExpression m34479 & [drop-extra-keys?__3495__auto__])

Factory function for class FnBinaryExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class FnBinaryExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->InArrayExpressionclj

(strict-map->InArrayExpression m34606 & [drop-extra-keys?__3495__auto__])

Factory function for class InArrayExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class InArrayExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->InExpressionclj

(strict-map->InExpression m35217 & [drop-extra-keys?__3495__auto__])

Factory function for class InExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class InExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->JsonbPathBinaryExpressionclj

(strict-map->JsonbPathBinaryExpression m35090
                                       &
                                       [drop-extra-keys?__3495__auto__])

Factory function for class JsonbPathBinaryExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class JsonbPathBinaryExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->JsonbScalarRegexExpressionclj

(strict-map->JsonbScalarRegexExpression m35157
                                        &
                                        [drop-extra-keys?__3495__auto__])

Factory function for class JsonbScalarRegexExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class JsonbScalarRegexExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->JsonContainsExpressionclj

(strict-map->JsonContainsExpression m35030 & [drop-extra-keys?__3495__auto__])

Factory function for class JsonContainsExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class JsonContainsExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->NullExpressionclj

(strict-map->NullExpression m34765 & [drop-extra-keys?__3495__auto__])

Factory function for class NullExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class NullExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->PathArrayAnyMatchclj

(strict-map->PathArrayAnyMatch m34924 & [drop-extra-keys?__3495__auto__])

Factory function for class PathArrayAnyMatch, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class PathArrayAnyMatch, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->PathArrayMatchclj

(strict-map->PathArrayMatch m34871 & [drop-extra-keys?__3495__auto__])

Factory function for class PathArrayMatch, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class PathArrayMatch, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->PathArrayRegexMatchclj

(strict-map->PathArrayRegexMatch m34977 & [drop-extra-keys?__3495__auto__])

Factory function for class PathArrayRegexMatch, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class PathArrayRegexMatch, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->Queryclj

(strict-map->Query m34356 & [drop-extra-keys?__3495__auto__])

Factory function for class Query, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class Query, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strict-map->RegexExpressionclj

(strict-map->RegexExpression m34659 & [drop-extra-keys?__3495__auto__])

Factory function for class RegexExpression, taking a map of keywords to field values. All keys are required, and no extra keys are allowed. Even faster than map->

Factory function for class RegexExpression, taking a map of keywords to field values.  All keys are required, and no extra keys are allowed.  Even faster than map->
sourceraw docstring

strip-function-callsclj

(strip-function-calls column-or-columns)
source

subquery-expression?clj

(subquery-expression? expr)

Returns true if expr is a subquery expression

Returns true if expr is a subquery expression
sourceraw docstring

try-parse-timestampclj

(try-parse-timestamp ts)

Try to convert a string to a timestamp, throwing an exception if it fails

Try to convert a string to a timestamp, throwing an exception if it fails
sourceraw docstring

type-coercion-matrixclj

source

unsupported-fieldsclj

(unsupported-fields field allowed-fields allowed-json-extracts)
source

update-selectionclj

(update-selection query-rec offset limit order-by)
source

user-name->query-rec-nameclj

source

user-node->plan-nodeclj

(user-node->plan-node query-rec node)

Create a query plan for node in the context of the given query (as query-rec)

Create a query plan for `node` in the context of the given query (as `query-rec`)
sourceraw docstring

user-query->logical-objclj

(user-query->logical-obj subquery)

Keypairs of the stringified subquery keyword (found in user defined queries) to the appropriate plan node

Keypairs of the stringified subquery keyword (found in user defined queries) to the
appropriate plan node
sourceraw docstring

valid-operator?clj

(valid-operator? operator)
source

validate-argument-countclj

(validate-argument-count f args allowed-count)
source

validate-binary-operatorsclj

(validate-binary-operators node)

Validation of the user provided query

Validation of the user provided query
sourceraw docstring

validate-extract-filtersclj

(validate-extract-filters expr)

Validates the operators inside an extract clause. Short-circuits once an invalid operator is found

Validates the operators inside an extract clause. Short-circuits once an
invalid operator is found
sourceraw docstring

validate-fn-binary-exprclj

(validate-fn-binary-expr query-rec f args)

Throws an exception if the args are not appropriate for the AST function named f.

Throws an exception if the args are not appropriate for the AST
function named f.
sourceraw docstring

validate-query-fieldsclj

(validate-query-fields node state)

Add an error message to state if the field is not available for querying by the associated query-context

Add an error message to `state` if the field is not available for querying
by the associated query-context
sourceraw docstring

validate-query-operation-fieldsclj

(validate-query-operation-fields field
                                 allowed-fields
                                 allowed-json-extracts
                                 query-name
                                 error-action
                                 error-context)

Checks if query operation contains allowed fields. Returns error message string if some of the fields are invalid.

Error-action and error-context parameters help in formatting different error messages.

Checks if query operation contains allowed fields. Returns error
message string if some of the fields are invalid.

Error-action and error-context parameters help in formatting different error messages.
sourceraw docstring

validate-queryable-fieldclj

(validate-queryable-field query-rec maybe-field)
source

vec?clj

(vec? x)

Same as set?/list?/map? but for vectors

Same as set?/list?/map? but for vectors
sourceraw docstring

warn-experimentalclj

(warn-experimental entity)

Show a warning if the endpoint is experimental.

Show a warning if the endpoint is experimental.
sourceraw docstring

wrap-with-explainclj

(wrap-with-explain query explain-options)
source

wrap-with-node-state-cteclj

(wrap-with-node-state-cte selection node-purge-ttl)

Wrap a selection in a CTE representing expired or deactivated certnames

Wrap a selection in a CTE representing expired or deactivated certnames
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