Liking cljdoc? Tell your friends :D

convex.cvm.db

When a CVM instance is used, it relies on a thread-local database which can be manually retrieved using local.

The thread-local database can be set usint local-set. Originally, at thread initialization, it corresponds to the global database which is common to all threads. Its value can also be altered using global-set.

Ultimately, the global database itself returns [[default]] unless user has set its value to another database.

Default [[database]] is an Etch instance. See convex.db.

When a CVM instance is used, it relies on a thread-local database which can be manually retrieved using [[local]].

The thread-local database can be set usint [[local-set]]. Originally, at thread initialization, it corresponds to
the [[global]] database which is common to all threads. Its value can also be altered using [[global-set]].

Ultimately, the [[global]] database itself returns [[default]] unless user has set its value to another database.

Default [[database]] is an Etch instance. See [[convex.db]].
raw docstring

globalclj

(global)

Returns the global database.

Returns the global database.
sourceraw docstring

global-setclj

(global-set db)

Sets the global database returned by global.

Sets the global database returned by [[global]].
sourceraw docstring

localclj

(local)

Returns the thread-local database used by any CVM instance operating in the same thread.

Returns the thread-local database used by any CVM instance operating in the same thread.
sourceraw docstring

local-setclj

(local-set db)

Sets the thread-local database returned by local.

Sets the thread-local database returned by [[local]].
sourceraw docstring

local-withcljmacro

(local-with db & form+)

Macro using local-set momentarily to execute given forms before restoring the previous thread-local database.

Macro using `local-set` momentarily to execute given forms before restoring the previous thread-local database.
sourceraw docstring

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

× close