mirror of https://github.com/logseq/logseq
fix: disable namespace for db based graphs
parent
0b49d09fb1
commit
dab2a6e563
|
@ -498,7 +498,7 @@
|
|||
(defn db-based-graph?
|
||||
"Whether the current graph is db-only"
|
||||
[db]
|
||||
(= "db" (:db/type (d/entity db :logseq.kv.db/type))))
|
||||
(= "db" (:db/type (d/entity db :logseq.kv/db-type))))
|
||||
|
||||
;; File based fns
|
||||
(defn get-namespace-pages
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
(defn kv
|
||||
"Creates a key-value pair tx with the key under the :db/ident namespace :logseq.kv.
|
||||
For example, the :db/type key is stored under an entity with ident :logseq.kv.db/type"
|
||||
For example, the :db/type key is stored under an entity with ident :logseq.kv/db-type"
|
||||
[key value]
|
||||
{:db/ident (keyword "logseq.kv" (str (namespace key) "-" (name key)))
|
||||
key value})
|
||||
|
|
Loading…
Reference in New Issue