Skip to content

Commit 9e1c69a

Browse files
committed
Expose materialize in the db namespace
1 parent 3f1052c commit 9e1c69a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/xitdb/db.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
[java.security MessageDigest]
1212
[java.util.concurrent.locks ReentrantLock]))
1313

14-
1514
;; When set to true,
1615
;; swap! will return [current-history-index old-dbval new-dbval]
1716
(defonce ^:dynamic *return-history?* false)
1817

18+
;; Avoid extra require in your ns
19+
(def materialize common/materialize)
20+
1921

2022
(defn ^WriteArrayList db-history [^Database db]
2123
(WriteArrayList. (.rootCursor db)))

0 commit comments

Comments
 (0)