(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.
(db-history db)
(history-index xdb)
(open-database filename open-mode)
(read-history db)
(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!`
(xit-db filename)
(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.
(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]`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close