Liking cljdoc? Tell your friends :D

hyperphor.tunamelt.core

clj

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).
cljs

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

configure!clj/s≠

(configure! {:keys [store realm]})
clj

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.
cljs

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.
source (clj)source (cljs)raw docstring

deleteclj/s≠

(delete uri)
clj

Delete uri and its history. Returns true if it existed.

Delete uri and its history. Returns true if it existed.
cljs

Promise of true if uri existed; deletes it and its history.

Promise of true if uri existed; deletes it and its history.
source (clj)source (cljs)raw docstring

findclj/s≠

(find type)
(find type opts)
clj

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).
cljs

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}.
source (clj)source (cljs)raw docstring

getclj/s≠

(get uri)
clj

Return the object at uri, or nil.

Return the object at uri, or nil.
cljs

Promise of the object at uri, or nil.

Promise of the object at uri, or nil.
source (clj)source (cljs)raw docstring

get-entryclj/s≠

(get-entry uri)
clj

Return {:uri :obj :meta} for uri, or nil.

Return {:uri :obj :meta} for uri, or nil.
cljs

Promise of {:uri :obj :meta} for uri, or nil.

Promise of {:uri :obj :meta} for uri, or nil.
source (clj)source (cljs)raw docstring

historyclj/s≠

(history uri)
clj

Revisions of uri, newest first (a single entry for :mutable objects).

Revisions of uri, newest first (a single entry for :mutable objects).
cljs

Promise of revisions of uri, newest first.

Promise of revisions of uri, newest first.
source (clj)source (cljs)raw docstring

putclj/s≠

(put uri-or-type obj)
(put uri-or-type obj opts)
clj

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.
cljs

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}.
source (clj)source (cljs)raw docstring

put-manyclj/s

(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.
source (clj)source (cljs)raw docstring

realmclj/s

(realm)

The configured default realm.

The configured default realm.
source (clj)source (cljs)raw docstring

referrersclj/s≠

(referrers uri)
(referrers uri opts)
clj

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.
cljs

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.
source (clj)source (cljs)raw docstring

refsclj/s≠

(refs uri)
clj

Forward references of the object at uri: {attr [uri ...]}.

Forward references of the object at uri: {attr [uri ...]}.
cljs

Promise of the forward references of the object at uri: {attr [uri ...]}.

Promise of the forward references of the object at uri: {attr [uri ...]}.
source (clj)source (cljs)raw docstring

(search query)
(search query opts)
clj

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).
cljs

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.
source (clj)source (cljs)raw docstring

typesclj/s≠

(types)
(types {:keys [realm counts?]})
clj

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.
cljs

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?.
source (clj)source (cljs)raw docstring

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