feat: export debug json which exclude sensitive data

This commit is contained in:
Tienson Qin
2024-08-23 01:01:54 +08:00
parent 14de328a06
commit a779245205
5 changed files with 89 additions and 13 deletions

View File

@@ -659,6 +659,11 @@
(ldb/read-transit-str tree->file-opts)
(ldb/read-transit-str context)))))
(get-debug-datoms
[this repo]
(when-let [db (worker-state/get-sqlite-conn repo)]
(ldb/write-transit-str (worker-export/get-debug-datoms db))))
(get-all-pages
[this repo]
(when-let [conn (worker-state/get-datascript-conn repo)]