Liking cljdoc? Tell your friends :D

hyperphor.tunamelt.store

Storage backend protocol. Keys are {:realm :type :id} maps. In cljs every method returns a Promise of the documented value.

Storage backend protocol. Keys are {:realm :type :id} maps.
In cljs every method returns a Promise of the documented value.
raw docstring

Storeclj/s≠protocol

get*clj/s

(get* store k)

Return {:key :obj :meta} for k, or nil.

Return {:key :obj :meta} for k, or nil.

search*clj/s

(search* store query opts)

Return entries (plus :rank, :snippet) whose text matches query, best first. opts: :type, :realm, :limit, :raw?.

Return entries (plus :rank, :snippet) whose text matches query, best first.
opts: :type, :realm, :limit, :raw?.

types*clj/s

(types* store realm)

Return {type count} for all stored types, optionally limited to realm.

Return {type count} for all stored types, optionally limited to realm.

delete*clj/s

(delete* store k)

Delete k and its history. Returns true if something was deleted.

Delete k and its history. Returns true if something was deleted.

referrers*clj/s

(referrers* store uri opts)

Return entries (plus :attr) whose attributes hold uri. opts: :attr, :type.

Return entries (plus :attr) whose attributes hold uri. opts: :attr, :type.

put-many*clj/s

(put-many* store entries)

Put a seq of [k obj opts] in one transaction.

Put a seq of [k obj opts] in one transaction.

history*clj/s

(history* store k)

Return revisions of k, newest first, as {:key :obj :meta}.

Return revisions of k, newest first, as {:key :obj :meta}.

put*clj/s

(put* store k obj opts)

Upsert obj at key k. opts: {:mode :mutable|:append-only}. Returns the entry.

Upsert obj at key k. opts: {:mode :mutable|:append-only}. Returns the entry.

find*clj/s≠

clj
(find* store type {:keys [realm since until attrs limit]})
cljs
(find* store type G__5706)

Return seq of {:key :obj :meta} of type, newest first.

Return seq of {:key :obj :meta} of type, newest first.
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close