Liking cljdoc? Tell your friends :D

metabase.query-processor.middleware.dev

Middleware that's only active in dev and test scenarios. These middleware functions do additional checks of query processor behavior that are undesirable in normal production use.

Middleware that's only active in dev and test scenarios. These middleware functions do additional checks of query
processor behavior that are undesirable in normal production use.
raw docstring

check-results-formatclj

(check-results-format qp)

Make sure the results of a QP execution are in the expected format. This takes place after the 'annotation' stage of post-processing. This check is skipped in prod to avoid wasting CPU cycles.

Make sure the results of a QP execution are in the expected format. This takes place *after* the 'annotation' stage
of post-processing. This check is skipped in prod to avoid wasting CPU cycles.
sourceraw docstring

QPResultsFormatclj

Schema for the expected format of results returned by a query processor.

Schema for the expected format of results returned by a query processor.
sourceraw docstring

validate-resultsclj

(validate-results results)

Validate that the RESULTS of executing a query match the QPResultsFormat schema. Throws an Exception if they are not; returns RESULTS as-is if they are.

Validate that the RESULTS of executing a query match the `QPResultsFormat` schema. Throws an `Exception` if they are
not; returns RESULTS as-is if they are.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close