Liking cljdoc? Tell your friends :D

xyz.triplox.api

Clojure client API for Triplox.

Clojure client API for Triplox.
raw docstring

connectclj

(connect host port)

Connect to a Triplox server. Returns a TriploxNode (AutoCloseable).

Connect to a Triplox server. Returns a TriploxNode (AutoCloseable).
sourceraw docstring

dbclj

(db conn)
(db conn {:keys [tx-id system-time] :as tx-key})

Open a DB value. Returns a Db.

Open a DB value. Returns a Db.
sourceraw docstring

qclj

(q db query & args)

Execute a Datalog query. Returns a vector of vectors.

Execute a Datalog query. Returns a vector of vectors.
sourceraw docstring

submit-txclj

(submit-tx conn tx-data)

Submit a fire-and-forget transaction. Returns result map.

Submit a fire-and-forget transaction. Returns result map.
sourceraw docstring

subscribeclj

(subscribe conn query & args)

Register an incremental query and stream its result deltas. Returns a Subscription (Closeable); use with with-open. Closing unsubscribes.

Register an incremental query and stream its result deltas. Returns a
Subscription (Closeable); use with `with-open`. Closing unsubscribes.
sourceraw docstring

take!clj

(take! sub)
(take! sub timeout-ms)

Block for the next delta. Returns a vector of [row-values weight] pairs (values via types/wire->clj), or nil when the stream is closed. The 2-arity bounds the wait, returning ::timeout on expiry.

Block for the next delta. Returns a vector of `[row-values weight]` pairs
(values via `types/wire->clj`), or nil when the stream is closed. The 2-arity
bounds the wait, returning `::timeout` on expiry.
sourceraw docstring

transactclj

(transact conn tx-data)

Execute a transaction and wait for indexing. Returns result map.

Execute a transaction and wait for indexing. Returns result map.
sourceraw docstring

tx-keyclj

(tx-key sub)

The registration tx_key of a subscription, as a map.

The registration tx_key of a subscription, as a map.
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