Liking cljdoc? Tell your friends :D
ClojureScript only.

orbitdb.keyvalue


get-valuecljs

(get-value keyvalue-instance k)

Returns a map with the contents of an entry (map) stored at the key (string)

Returns a map with the contents of an entry (map) stored at the key (string)
sourceraw docstring

keyvaluecljs

(keyvalue orbitdb-instance {:keys [name address opts] :or {opts {}}})

Creates and opens a keyvalue database. Takes an OrbitDB instance and a map with:

:name or :address whether you want to create a new or connect to an existing database.

:opts: a map of options (see orbitdb.core/create-database)

Returns a js/Promise resolving to the instance of the database.

Creates and opens a keyvalue database.
Takes an OrbitDB instance and a map with:

`:name` or `:address` whether you want to create a new or connect to an existing database.

`:opts`: a map of options (see `orbitdb.core/create-database`)

Returns a js/Promise resolving to the instance of the database.
sourceraw docstring

set-keycljs

(set-key keyvalue-instance k v & [opts])

Sets a value (map) at a given key (string). Returns a js/Promise that resolves to hash of the entry (string).

Sets a value (map) at a given key (string).
Returns a js/Promise that resolves to hash of the entry (string).
sourceraw docstring

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

× close