Revert "refactor: add :client-ops-db in *sqlite-conns"

This reverts commit f1b1bd247a.
This commit is contained in:
rcmerci
2024-07-18 21:37:05 +08:00
parent f1b1bd247a
commit 90e85bc085
2 changed files with 17 additions and 21 deletions

View File

@@ -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]