Liking cljdoc? Tell your friends :D

xtdb.tarantool


->tnt-clientclj

(->tnt-client {:keys [host port username password retries exception-handler
                      request-retry-policy]})

Returns a tarantool client as a component of the xtdb.system.

Returns a tarantool client as a component of the xtdb.system.
sourceraw docstring

->tx-logclj

(->tx-log opts)
source

closeclj

(close x)

Closes the component.

Closes the component.
sourceraw docstring

default-complex-types-mapperclj

Modification-safe instance of the messagepack mapper. The instance contains converters for simple types and complex types java.util.Map and java.util.List.

Modification-safe instance of the messagepack mapper.
The instance contains converters for simple types and complex types `java.util.Map` and `java.util.List`.
sourceraw docstring

default-exception-handlerclj

(default-exception-handler)

Returns a default exception handler.

Returns a default exception handler.
sourceraw docstring

default-request-retry-policyclj

(default-request-retry-policy {:keys [delay] :or {delay 300}})

Returns a default request retry policy.

Returns a default request retry policy.
sourceraw docstring

default-simple-type-mapperclj

Modification-safe instance of the messagepack mapper. The instance already contains converters for simple types.

Modification-safe instance of the messagepack mapper.
The instance already contains converters for simple types.
sourceraw docstring

deserializeclj

(deserialize x)
source

executeclj

(execute tnt-client mapper fn-name)
(execute tnt-client mapper fn-name fn-args)

Execute a function defined on the Tarantool instance. Params:

  • tnt-client - instance of io.tarantool.driver.api.TarantoolClient
  • mapper - mapper for arguments object-to-MessagePack entity conversion and result values conversion
  • fn-name - function name, must not be null or empty
  • fn-args - function arguments (optional)
Execute a function defined on the Tarantool instance.
Params:
  * tnt-client - instance of `io.tarantool.driver.api.TarantoolClient`
  * mapper     - mapper for arguments object-to-MessagePack entity conversion and result values conversion
  * fn-name    - function name, must not be null or empty
  * fn-args    - function arguments (optional)
sourceraw docstring

get-box-infoclj

(get-box-info tnt-client mapper)
source

ITarantoolCallFnArgumentcljprotocol

This protocol is used to simplify manipulations with the arguments of the function defined in the Tarantool instance.

This protocol is used to simplify manipulations with the arguments of the function defined in the Tarantool instance.

-prepare-fn-argsclj

(-prepare-fn-args argument)
sourceraw docstring

latest-submitted-txclj

(latest-submitted-tx {:keys [tnt-client mapper]})

Returns the latest submitted tx-id if the tx-log is not empty. Otherwise, returns nil.

Returns the latest submitted `tx-id` if the `tx-log` is not empty. Otherwise, returns `nil`.
sourceraw docstring

open-tx-logclj

(open-tx-log tx-log after-tx-id)

Returns the tx-log as an instance of xtdb.api.Cursor.

Returns the `tx-log` as an instance of `xtdb.api.Cursor`.
sourceraw docstring

open-tx-log*clj

(open-tx-log* {:as tx-log :keys [tnt-client mapper]} after-tx-id)

Returns the tx-log as a lazy sequence.

Returns the `tx-log` as a lazy sequence.
sourceraw docstring

prepare-fn-argsclj

(prepare-fn-args)
(prepare-fn-args x)

Prepares the list of arguments for executing the function defined in the Tarantool instance.

Prepares the list of arguments for executing the function defined in the Tarantool instance.
sourceraw docstring

serializeclj

(serialize x)
source

submit-txclj

(submit-tx {:keys [tnt-client mapper]} tx-events)

Submits a tx to the tx-log and returns an instance of clojure.lang.Delay.

Submits a `tx` to the `tx-log` and returns an instance of `clojure.lang.Delay`.
sourceraw docstring

subscribeclj

(subscribe {:as tx-log :keys [poll-wait-duration]} after-tx-id f)

Subscribe to the tx-log (via long-polling) using a poll-wait-duration.

Subscribe to the `tx-log` (via long-polling) using a `poll-wait-duration`.
sourceraw docstring

TarantoolTxLogclj

source

to-instclj

(to-inst ts)

Converts microseconds to java.util.Date.

Converts microseconds to `java.util.Date`.
sourceraw docstring

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

× close