(del-doc docstore-instance hash)
Removes an item pointed to by the hash value. Returns a Promise that resolves to the hash of the entry as a String.
Removes an item pointed to by the hash value. Returns a Promise that resolves to the hash of the entry as a String.
(docstore orbitdb-instance {:keys [name address opts] :or {opts {}}})
Creates and opens a docstore 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 docstore 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.
Takes an OrbitDB docstore database instance and a hash of an entry (string). Returns a map with the contents of that entry.
Takes an OrbitDB docstore database instance and a hash of an entry (string). Returns a map with the contents of that entry.
(put-doc docstore-instance doc & [opts])
Returns a Promise that resolves to the hash of the entry (string).
Returns a Promise that resolves to the hash of the entry (string).
(query docstore-instance predicate-fn)
Returns a vector of results based on a predicate function with a following signature: fn [doc]
Returns a vector of results based on a predicate function with a following signature: `fn [doc]`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close