A protocol for storing/loading EDN from some kind of durable storage. This protocol is used by the offline support to isolate the need to persist data from the runtime environment, since Fulcro may be running in node/electron, a browser, or a mobile device.
A protocol for storing/loading EDN from some kind of durable storage. This protocol is used by the offline support to isolate the need to persist data from the runtime environment, since Fulcro may be running in node/electron, a browser, or a mobile device.
(clear-store! store)
Clear the entire content of an EDN store.
Clear the entire content of an EDN store.
(-all-ids this)
Returns a channel that has a sequence of all of the ids available in this store.
Returns a channel that has a sequence of all of the ids available in this store.
(-delete! this id)
Delete the given item from the store. Returns boolean to indicate success.
Delete the given item from the store. Returns boolean to indicate success.
(-exists? this id)
Returns a channel containing a boolean that indicates if the item exists in the store.
Returns a channel containing a boolean that indicates if the item exists in the store.
(-load-all this)
Returns a channel that contains a vector of maps {:id id :value edn}
for everything in this store.
Returns a channel that contains a vector of maps `{:id id :value edn}` for everything in this store.
(-load-edn! this id)
Returns a channel that contains the EDN stored under the given id
.
Returns a channel that contains the EDN stored under the given `id`.
(-save-edn! this id edn)
Save the given edn
using id
. Returns a channel containing a boolean that
indicates success.
Save the given `edn` using `id`. Returns a channel containing a boolean that indicates success.
(-update-edn! this id xform)
Updates the EDN stored under id
using (xform [edn] ...)
.
Guaranteed not to lose the existing content on failures. Returns a channel containing a boolean that indicates success or failure.
Updates the EDN stored under `id` using `(xform [edn] ...)`. Guaranteed not to lose the existing content on failures. Returns a channel containing a boolean that indicates success or failure.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close