Liking cljdoc? Tell your friends :D
ClojureScript only.

orbitdb.counter


countercljs

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

increasecljs

(increase counter-instance & [value])

Increases the number by a value (optional, defaults to 1)

Increases the number by a value (optional, defaults to 1)
sourceraw docstring

valuecljs

(value counter-instance)

Returns a number.

Returns a number.
sourceraw docstring

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

× close