Liking cljdoc? Tell your friends :D

xitdb.db


*return-history?*clj


append-context!clj

(append-context! history slot fn)

Appends a new history context and calls fn with a write cursor. Returns the new history index.

Appends a new history context and calls `fn` with a write cursor.
Returns the new history index.
raw docstring

db-historyclj

(db-history db)

history-indexclj

(history-index xdb)

open-databaseclj

(open-database filename open-mode)

read-historyclj

(read-history db)

v->slot!clj

(v->slot! cursor v)

Converts a value to a slot which can be written to a cursor. For XITDB* types (which support ISlot), will return -slot, for all other types conversion/v->slot!

Converts a value to a slot which can be written to a cursor.
For XITDB* types (which support ISlot), will return `-slot`,
for all other types `conversion/v->slot!`
raw docstring

xit-dbclj

(xit-db filename)

xitdb-reset!clj

(xitdb-reset! history new-value)

Sets the value of the database to new-value. Returns new history index.

Sets the value of the database to `new-value`.
Returns new history index.
raw docstring

xitdb-swap!clj

(xitdb-swap! db f & args)

Returns history index.

Returns history index.
raw docstring

xitdb-swap-with-lock!clj

(xitdb-swap-with-lock! xitdb f & args)

Performs the 'swap!' operation while locking db.lock. Returns the new value of the database. If the binding *return-history?* is true, returns [current-history-index db-before db-after].

Performs the 'swap!' operation while locking `db.lock`.
Returns the new value of the database.
If the binding `*return-history?*` is true, returns
`[current-history-index db-before db-after]`.
raw docstring

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

× close