Liking cljdoc? Tell your friends :D

orbitdb.docstore


del-doccljs

(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.
sourceraw docstring

docstorecljs

(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.
sourceraw docstring

get-doccljs

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.
sourceraw docstring

put-doccljs

(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).
sourceraw docstring

querycljs

(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]`
sourceraw docstring

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

× close