mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
enhance: add basic script to test db graph import
also tweaked query script to work with db graphs by relative path
This commit is contained in:
10
bb.edn
10
bb.edn
@@ -68,12 +68,20 @@
|
||||
|
||||
dev:db-query
|
||||
{:doc "Query a DB graph's datascript db"
|
||||
:task (apply shell {:dir "deps/db"} "yarn -s nbb-logseq script/query.cljs" *command-line-args*)}
|
||||
:requires ([babashka.fs :as fs])
|
||||
:task (apply shell {:dir "deps/db" :extra-env {"ORIGINAL_PWD" (fs/cwd)}}
|
||||
"yarn -s nbb-logseq script/query.cljs" *command-line-args*)}
|
||||
|
||||
dev:db-transact
|
||||
{:doc "Transact against a DB graph's datascript db"
|
||||
:task (apply shell {:dir "deps/outliner"} "yarn -s nbb-logseq script/transact.cljs" *command-line-args*)}
|
||||
|
||||
dev:db-import
|
||||
{:doc "Import a file graph to db graph"
|
||||
:requires ([babashka.fs :as fs])
|
||||
:task (apply shell {:dir "deps/graph-parser" :extra-env {"ORIGINAL_PWD" (fs/cwd)}}
|
||||
"yarn -s nbb-logseq -cp src:../outliner/src:../../scripts/src script/db_import.cljs" *command-line-args*)}
|
||||
|
||||
dev:db-datoms
|
||||
{:doc "Write db's datoms to a file"
|
||||
:requires ([babashka.fs :as fs])
|
||||
|
||||
Reference in New Issue
Block a user