clj-foundationdb.utils

bytes->key

(bytes->key bytes)

Get the key from the KeyValue object. Since the keys might be nested use .getItems. Since all the keys might not be encoded with Tuple layer use stringification for those cases

bytes->value

(bytes->value bytes)

Get the value from the KeyValue object. Since all the values might not be encoded with Tuple layer use stringification for those cases

bytes-to-str

(bytes-to-str bytes)

Convert bytes to string

key->packed-tuple

(key->packed-tuple key)

Pack the key with respect to Tuple encoding

key->tuple

(key->tuple key)

Return tuple encoding for the given key

open

(open db)

Initializes networking, connects with the default fdb.cluster file, and opens the database.

range->kv

(range->kv range-query)

Convert range object into a vector of key value pairs.

select-api-version

(select-api-version version)

Select the version for the client API.