(fetch {:keys [data-db f-id->conn]} id & [fields])
Fetch object by ID
Fetch object by ID
(index! {:keys [db data-db f-id->iid f-index f-id->conn]} {:keys [id] :as obj})
Index and store an object.
Index and store an object.
(init dbs
{:keys [f-index data-db f-id->iid f-iid->id f-id->conn]
:or {f-id->iid default-id->iid
f-iid->id default-iid->id
f-id->conn default-id->conn}})
Inputs: [dbs :- (deref-of [Connection]) {:keys [f-index data-db f-id->iid f-iid->id f-id->conn], :or {f-id->iid default-id->iid, f-iid->id default-iid->id, f-id->conn default-id->conn}} :- ClientConfig]
Inputs: [dbs :- (deref-of [Connection]) {:keys [f-index data-db f-id->iid f-iid->id f-id->conn], :or {f-id->iid default-id->iid, f-iid->id default-iid->id, f-id->conn default-id->conn}} :- ClientConfig]
(query client
&
[query :- (s/maybe QueryExpression) sample-size :- (s/maybe s/Int) fields
:- [Key]])
Inputs: [client & [query :- (s/maybe QueryExpression) sample-size :- (s/maybe s/Int) fields :- [Key]]] Returns: {:size s/Int, :sample [{Key s/Any}]}
Inputs: [client & [query :- (s/maybe QueryExpression) sample-size :- (s/maybe s/Int) fields :- [Key]]] Returns: {:size s/Int, :sample [{Key s/Any}]}
(unindex! {:keys [db data-db f-id->iid f-index f-id->conn]} id)
Remove the object and its indices.
Remove the object and its indices.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close