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

runclj

(run tc tc-fn)

Takes a TransactionContext and a fn, and runs the function against once against this Transaction

Takes a `TransactionContext` and a `fn`, and runs the function
against once against this Transaction
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