Public API: put/get/find/delete/history of JSON-able objects under hyperphor://realm/type/id URIs.
ClojureScript (IndexedDB) API docs: cljs/index.html.
Public API: put/get/find/delete/history of JSON-able objects under hyperphor://realm/type/id URIs. ClojureScript (IndexedDB) API docs: [cljs/index.html](cljs/index.html).
Public API (ClojureScript): as on the JVM, but every function returns a Promise. The default store is the IndexedDB database "tunamelt".
Public API (ClojureScript): as on the JVM, but every function returns a Promise. The default store is the IndexedDB database "tunamelt".
(configure! {:keys [store realm]})Set :store (a Store, or a SQLite path string) and/or :realm. Returns nil.
Set :store (a Store, or a SQLite path string) and/or :realm. Returns nil.
Set :store (a Store, or an IndexedDB database name) and/or :realm. Returns nil.
Set :store (a Store, or an IndexedDB database name) and/or :realm. Returns nil.
(delete uri)Delete uri and its history. Returns true if it existed.
Delete uri and its history. Returns true if it existed.
Promise of true if uri existed; deletes it and its history.
Promise of true if uri existed; deletes it and its history.
(find type)(find type opts)Seq of {:uri :obj :meta} of type, newest first. opts: :realm, :since/:until (inst or epoch ms), :limit, :attrs {k v} where v is a scalar (matches any value), a vector (must contain all), or nil (attr absent).
Seq of {:uri :obj :meta} of type, newest first.
opts: :realm, :since/:until (inst or epoch ms), :limit, :attrs {k v} where v is a scalar
(matches any value), a vector (must contain all), or nil (attr absent).Promise of [{:uri :obj :meta}] of type, newest first. opts as on the JVM: :realm, :since/:until (inst or epoch ms), :limit, :attrs {k v}.
Promise of [{:uri :obj :meta}] of type, newest first. opts as on the JVM:
:realm, :since/:until (inst or epoch ms), :limit, :attrs {k v}.(get uri)Return the object at uri, or nil.
Return the object at uri, or nil.
Promise of the object at uri, or nil.
Promise of the object at uri, or nil.
(get-entry uri)Return {:uri :obj :meta} for uri, or nil.
Return {:uri :obj :meta} for uri, or nil.
Promise of {:uri :obj :meta} for uri, or nil.
Promise of {:uri :obj :meta} for uri, or nil.
(history uri)Revisions of uri, newest first (a single entry for :mutable objects).
Revisions of uri, newest first (a single entry for :mutable objects).
Promise of revisions of uri, newest first.
Promise of revisions of uri, newest first.
(put uri-or-type obj)(put uri-or-type obj opts)Upsert obj at a URI, or at a new id under bare type. opts {:mode :mutable|:append-only}; mode is fixed at creation. Returns {:uri :obj :meta}. Keyword values read back as strings.
Upsert obj at a URI, or at a new id under bare type. opts {:mode :mutable|:append-only};
mode is fixed at creation. Returns {:uri :obj :meta}. Keyword values read back as strings.Upsert obj at a URI, or at a new id under bare type. opts {:mode :mutable|:append-only}; mode is fixed at creation. Promise of {:uri :obj :meta}.
Upsert obj at a URI, or at a new id under bare type. opts {:mode :mutable|:append-only};
mode is fixed at creation. Promise of {:uri :obj :meta}.(put-many entries)Put a seq of [uri-or-type obj] or [uri-or-type obj opts] in one transaction.
Put a seq of [uri-or-type obj] or [uri-or-type obj opts] in one transaction.
(realm)The configured default realm.
The configured default realm.
(referrers uri)(referrers uri opts)Entries (plus :attr) of objects referring to uri, newest first. opts: :attr, :type.
Entries (plus :attr) of objects referring to uri, newest first. opts: :attr, :type.
Promise of entries (plus :attr) referring to uri, newest first. opts: :attr, :type.
Promise of entries (plus :attr) referring to uri, newest first. opts: :attr, :type.
(refs uri)Forward references of the object at uri: {attr [uri ...]}.
Forward references of the object at uri: {attr [uri ...]}.
Promise of the forward references of the object at uri: {attr [uri ...]}.
Promise of the forward references of the object at uri: {attr [uri ...]}.
(search query)(search query opts)Entries whose text attribute values match query, best first, each plus :rank and :snippet. Every word must match as a prefix; opts: :type, :realm, :limit, :raw? (query is FTS5 syntax).
Entries whose text attribute values match query, best first, each plus :rank and :snippet. Every word must match as a prefix; opts: :type, :realm, :limit, :raw? (query is FTS5 syntax).
Promise of entries matching query, best first, each plus :rank and :snippet. Every word must match as a prefix. :raw? is not supported on IndexedDB.
Promise of entries matching query, best first, each plus :rank and :snippet. Every word must match as a prefix. :raw? is not supported on IndexedDB.
(types)(types {:keys [realm counts?]})Sorted seq of stored type names, or a sorted {type count} map if :counts? is true. opts: :realm limits to one realm.
Sorted seq of stored type names, or a sorted {type count} map if :counts? is true.
opts: :realm limits to one realm.Promise of a sorted seq of type names, or a sorted {type count} map with :counts?.
Promise of a sorted seq of type names, or a sorted {type count} map with :counts?.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |