Liking cljdoc? Tell your friends :D

me.vedang.clj-fdb.transaction


clear-keyclj

(clear-key tr k)

When given a Transaction and a key, clears a given key from the database. This will not affect the database until commit() is called.

When given a Transaction and a key, clears a given key from the
database. This will not affect the database until commit() is
called.
sourceraw docstring

clear-rangeclj

(clear-range tr rg)

When given a Range, clears a range of keys in the database. The upper bound of the range is exclusive; that is, the key (if one exists) that is specified as the end of the range will NOT be cleared as part of this operation. Range clears are efficient with FoundationDB -- clearing large amounts of data will be fast. This will not affect the database until commit() is called.

When given a Range, clears a range of keys in the database. The
upper bound of the range is exclusive; that is, the key (if one
exists) that is specified as the end of the range will NOT be
cleared as part of this operation. Range clears are efficient with
FoundationDB -- clearing large amounts of data will be fast. This
will not affect the database until commit() is called.
sourceraw docstring

getclj

(get tr k)

Gets a value from the database. The call will return null if the key is not present in the database.

Gets a value from the database. The call will return null if the
key is not present in the database.
sourceraw docstring

get-rangeclj

(get-range tr rg)

Gets an ordered range of keys and values from the database. The begin and end keys are specified by byte[] arrays, with the begin key inclusive and the end key exclusive. Ranges are returned from calls to Tuple.range() and Range.startsWith(byte[]).

Gets an ordered range of keys and values from the database. The
begin and end keys are specified by byte[] arrays, with the begin
key inclusive and the end key exclusive. Ranges are returned from
calls to Tuple.range() and Range.startsWith(byte[]).
sourceraw docstring

mutate!clj

(mutate! tr mut k param)

An atomic operation is a single database command that carries out several logical steps: reading the value of a key, performing a transformation on that value, and writing the result.

An atomic operation is a single database command that carries out
several logical steps: reading the value of a key, performing a
transformation on that value, and writing the result.
sourceraw docstring

readclj

(read tc tr-fn)

Takes a TransactionContext and runs a function fn in this context that takes a read-only transaction. Depending on the type of context, this may execute the supplied function multiple times if an error is encountered. This method is blocking -- control will not return from this call until work is complete.

Takes a `TransactionContext` and runs a function `fn` in this context
that takes a read-only transaction. Depending on the type of
context, this may execute the supplied function multiple times if an
error is encountered. This method is blocking -- control will not
return from this call until work is complete.
sourceraw docstring

read-async!clj

(read-async! tc tr-fn)

Takes a TransactionContext and runs a function fn in this context that takes a read-only transaction. Depending on the type of context, this may execute the supplied function multiple times if an error is encountered. This method is non-blocking -- control flow returns immediately with a CompletableFuture.

Takes a `TransactionContext` and runs a function `fn` in this context
that takes a read-only transaction. Depending on the type of
context, this may execute the supplied function multiple times if an
error is encountered. This method is non-blocking -- control flow
returns immediately with a `CompletableFuture`.
sourceraw docstring

runclj

(run tc tr-fn)

Takes a TransactionContext and a fn, and runs the function once against this Transaction. The call blocks while user code is executing, returning the result of that code on completion.

Takes a `TransactionContext` and a `fn`, and runs the function once
against this Transaction. The call blocks while user code is
executing, returning the result of that code on completion.
sourceraw docstring

run-async!clj

(run-async! tc tr-fn)

Takes a TransactionContext and a fn. Depending on the type of context, this may execute the supplied function multiple times if an error is encountered. This call is non-blocking -- control flow will return immediately with a CompletableFuture that will be set when the process is complete.

Takes a `TransactionContext` and a `fn`. Depending on the type of
context, this may execute the supplied function multiple times if an
error is encountered. This call is non-blocking -- control flow will
return immediately with a `CompletableFuture` that will be set when
the process is complete.
sourceraw docstring

setclj

(set tr k v)

Sets the value for a given key.

Sets the value for a given key.
sourceraw docstring

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

× close