(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.
(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.
(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.
(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[]).
(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
(set tr k v)
Sets the value for a given key.
Sets the value for a given key.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close