mirror of https://github.com/logseq/logseq
parent
7958c6b22d
commit
507e9fb031
|
@ -174,9 +174,10 @@
|
||||||
[repo]
|
[repo]
|
||||||
(when-let [database (get-db repo)]
|
(when-let [database (get-db repo)]
|
||||||
(.close database)
|
(.close database)
|
||||||
(let [[_ db-full-path] (get-db-full-path repo)]
|
(let [[db-name db-full-path] (get-db-full-path repo)]
|
||||||
(println "Delete search indice: " db-full-path)
|
(println "Delete search indice: " db-full-path)
|
||||||
(fs/unlinkSync db-full-path))))
|
(fs/unlinkSync db-full-path)
|
||||||
|
(swap! databases dissoc db-name))))
|
||||||
|
|
||||||
(defn query
|
(defn query
|
||||||
[repo sql]
|
[repo sql]
|
||||||
|
|
Loading…
Reference in New Issue