(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 filename]} 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 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