Files
logseq/src/main/frontend/persist_db/protocol.cljs
2023-12-07 23:15:04 +08:00

12 lines
335 B
Clojure

(ns frontend.persist-db.protocol
"Provides protocol for persisting db"
(:require))
;; TODO: exporting, importing support
(defprotocol PersistentDB
(<list-db [this])
(<new [this repo])
(<unsafe-delete [this repo])
(<transact-data [this repo tx-data tx-meta] "Transact data to db")
(<fetch-initial-data [this repo opts]))