mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
Revert "refactor: add :client-ops-db in *sqlite-conns"
This reverts commit f1b1bd247a.
This commit is contained in:
@@ -40,11 +40,11 @@
|
||||
(defonce *opfs-pools (atom nil))
|
||||
|
||||
(defn get-sqlite-conn
|
||||
"which-db: enum of [:db :search :client-ops-db], default :db"
|
||||
([repo] (get-sqlite-conn repo :db))
|
||||
([repo which-db]
|
||||
(assert (contains? #{:db :search :client-ops-db} which-db) which-db)
|
||||
(get-in @*sqlite-conns [repo which-db])))
|
||||
[repo & {:keys [search?]
|
||||
:or {search? false}
|
||||
:as _opts}]
|
||||
(let [k (if search? :search :db)]
|
||||
(get-in @*sqlite-conns [repo k])))
|
||||
|
||||
(defn get-datascript-conn
|
||||
[repo]
|
||||
|
||||
Reference in New Issue
Block a user