mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
Refactor: rename :block/content to :block/title
This commit is contained in:
4
deps/db/script/query.cljs
vendored
4
deps/db/script/query.cljs
vendored
@@ -1,7 +1,7 @@
|
||||
(ns query
|
||||
"An example script that queries any db graph from the commandline e.g.
|
||||
|
||||
$ yarn -s nbb-logseq script/query.cljs db-name '[:find (pull ?b [:block/name :block/content]) :where [?b :block/created-at]]'"
|
||||
$ yarn -s nbb-logseq script/query.cljs db-name '[:find (pull ?b [:block/name :block/title]) :where [?b :block/created-at]]'"
|
||||
(:require [datascript.core :as d]
|
||||
[clojure.edn :as edn]
|
||||
[logseq.db.sqlite.cli :as sqlite-cli]
|
||||
@@ -72,4 +72,4 @@
|
||||
(pprint/pprint results)))))
|
||||
|
||||
(when (= nbb/*file* (:file (meta #'-main)))
|
||||
(-main *command-line-args*))
|
||||
(-main *command-line-args*))
|
||||
|
||||
Reference in New Issue
Block a user