We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6bbac commit fdfe013Copy full SHA for fdfe013
src/xitdb/db.clj
@@ -85,7 +85,10 @@
85
"Performs the 'swap!' operation while locking `db.lock`.
86
Returns the new value of the database.
87
If the binding `*return-history?*` is true, returns
88
- `[current-history-index db-before db-after]`."
+ `[current-history-index db-before db-after]`.
89
+ If `keypath` is not empty, the result of `f` will be written to the db at `keypath` rather
90
+ than db root.
91
+ Similarly, if `keypath` is not empty, the returned value will be the value at `keypath`."
92
[xitdb base-keypath f & args]
93
(let [^ReentrantLock lock (.-lock xitdb)]
94
(when (.isHeldByCurrentThread lock)
0 commit comments