mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 15:15:01 +00:00
enhance: add import metadata
Useful for debugging different types of imports and knowing when import was done, especially since it can differ from when graph was created
This commit is contained in:
2
deps/db/script/create_graph.cljs
vendored
2
deps/db/script/create_graph.cljs
vendored
@@ -27,7 +27,7 @@
|
||||
[(node-path/join (os/homedir) "logseq" "graphs") graph-dir])
|
||||
sqlite-build-edn (merge {:auto-create-ontology? true}
|
||||
(-> (resolve-path edn-path) fs/readFileSync str edn/read-string))
|
||||
conn (outliner-cli/init-conn dir db-name {:classpath (cp/get-classpath)})
|
||||
conn (outliner-cli/init-conn dir db-name {:classpath (cp/get-classpath) :import-type :cli/create-graph})
|
||||
{:keys [init-tx block-props-tx]} (outliner-cli/build-blocks-tx sqlite-build-edn)]
|
||||
(println "Generating" (count (filter :block/name init-tx)) "pages and"
|
||||
(count (filter :block/title init-tx)) "blocks ...")
|
||||
|
||||
Reference in New Issue
Block a user