Liking cljdoc? Tell your friends :D

metabase.query-processor.async

Async versions of the usual public query processor functions. Instead of blocking while the query is ran, these functions all return a core.async channel that can be used to fetch the results when they become available.

Async versions of the usual public query processor functions. Instead of blocking while the query is ran, these
functions all return a `core.async` channel that can be used to fetch the results when they become available.
raw docstring

process-queryclj

(process-query query)

Inputs: [query] Returns: async.u/PromiseChan

Async version of metabase.query-processor/process-query. Runs query asynchronously, and returns a core.async channel that can be used to fetch the results once the query finishes running. Closing the channel will cancel the query.

Inputs: [query]
Returns: async.u/PromiseChan

Async version of `metabase.query-processor/process-query`. Runs query asynchronously, and returns a `core.async`
channel that can be used to fetch the results once the query finishes running. Closing the channel will cancel the
query.
sourceraw docstring

process-query-and-save-execution!clj

(process-query-and-save-execution! query options)

Inputs: [query options] Returns: async.u/PromiseChan

Async version of metabase.query-processor/process-query-and-save-execution!. Runs query asynchronously, and returns a core.async channel that can be used to fetch the results once the query finishes running. Closing the channel will cancel the query.

Inputs: [query options]
Returns: async.u/PromiseChan

Async version of `metabase.query-processor/process-query-and-save-execution!`. Runs query asynchronously, and returns
a `core.async` channel that can be used to fetch the results once the query finishes running. Closing the channel
will cancel the query.
sourceraw docstring

process-query-and-save-with-max-results-constraints!clj

(process-query-and-save-with-max-results-constraints! query options)

Inputs: [query options] Returns: async.u/PromiseChan

Async version of metabase.query-processor/process-query-and-save-with-max-results-constraints!. Runs query asynchronously, and returns a core.async channel that can be used to fetch the results once the query finishes running. Closing the channel will cancel the query.

Inputs: [query options]
Returns: async.u/PromiseChan

Async version of `metabase.query-processor/process-query-and-save-with-max-results-constraints!`. Runs query
asynchronously, and returns a `core.async` channel that can be used to fetch the results once the query finishes
running. Closing the channel will cancel the query.
sourceraw docstring

result-metadata-for-query-asyncclj

(result-metadata-for-query-async query)

Inputs: [query] Returns: ManyToManyChannel

Fetch the results metadata for a query by running the query and seeing what the QP gives us in return. This is obviously a bit wasteful so hopefully we can avoid having to do this. Returns a channel to get the results.

Inputs: [query]
Returns: ManyToManyChannel

Fetch the results metadata for a `query` by running the query and seeing what the QP gives us in return.
 This is obviously a bit wasteful so hopefully we can avoid having to do this. Returns a channel to get the
 results.
sourceraw docstring

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

× close