(clear-all-indices!!)
This should be used with care, as it does as advertized!
This should be used with care, as it does as advertized!
(clear-index! {:keys [id-fn-key filename]})
Clear an index based on ID function and database filename
Clear an index based on ID function and database filename
(ndjson->idx* id-fn-key filename)
Builds up an index of Entity IDs as keys (IDs extracted with id-fn), and as value a vector with 2 values: the start index in the text file to start read EDN for the JSON doc., and secondly the length in bytes JSON doc.
Builds up an index of Entity IDs as keys (IDs extracted with id-fn), and as value a vector with 2 values: the start index in the text file to start read EDN for the JSON doc., and secondly the length in bytes JSON doc.
(query {:keys [id-fn-key id-fn id-name id-type filename] :as params} ids)
Queries multiple JSON docs by ids in .ndjson file as database, returns EDN for the matching JSON doc.
Queries multiple JSON docs by ids in .ndjson file as database, returns EDN for the matching JSON doc.
(query-single {:keys [id-fn-key filename]} id)
Queries a single JSON doc. by id in .ndjson file as database, returns EDN for the matching doc.
Queries a single JSON doc. by id in .ndjson file as database, returns EDN for the matching doc.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close