Liking cljdoc? Tell your friends :D
Clojure only.

ripley.integration.xtdb

XTDB query source integration.

Query source will listen to new transactions and rerun queries on any changes.

XTDB query source integration.

Query source will listen to new transactions and rerun
queries on any changes.
raw docstring

qclj

(q {:keys [node should-update? immediate?] :or {immediate? true} :as _options}
   &
   query-and-args)

XTDB query source. Will rerun query and update results when new transactions are indexed.

Options map can have the following keys:

:node the XTDB node (required) :should-update? Optional function that takes tx ops and returns truthy value if the query should be rerun. By default query is always rerun. :immediate? If true (default) the query is immediately run when the source is created. If false, the query is run asynchronously and the source is returned without waiting for the results.

Query and args can either be a function to call or an XTDB query and its input arguments.

If the query is a function it is called with the latest db value and the rest of the arguments.

XTDB query source. Will rerun query and update results
when new transactions are indexed.

Options map can have the following keys:

:node            the XTDB node (required)
:should-update?  Optional function that takes tx ops and
                 returns truthy value if the query should
                 be rerun. By default query is always rerun.
:immediate?      If true (default) the query is immediately
                 run when the source is created. If false,
                 the query is run asynchronously and the
                 source is returned without waiting for the
                 results.


Query and args can either be a function to call or an XTDB
query and its input arguments.

If the query is a function it is called with the latest
db value and the rest of the arguments.
sourceraw docstring

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

× close