(counter orbitdb-instance {:keys [name address opts] :or {opts {}}})
Creates and opens a counter 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 counter 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.
(increase counter-instance & [value])
Increases the number by a value (optional, defaults to 1)
Increases the number by a value (optional, defaults to 1)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close