mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
12 lines
335 B
Clojure
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]))
|