Liking cljdoc? Tell your friends :D

com.fulcrologic.fulcro.offline.durable-edn-store

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.
raw docstring

clear-store!clj/s

(clear-store! store)

Clear the entire content of an EDN store.

Clear the entire content of an EDN store.
sourceraw docstring

DurableEDNStoreclj/sprotocol

-all-idsclj/s

(-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!clj/s

(-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?clj/s

(-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-allclj/s

(-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!clj/s

(-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!clj/s

(-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!clj/s

(-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.
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close