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.
(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.
Schema for the expected format of results returned by a query processor.
Schema for the expected format of results returned by a query processor.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close