Liking cljdoc? Tell your friends :D

ndjson-db.core


id-fnsclj

source

ndjson->idxclj

source

ndjson->idx*clj

(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.
sourceraw docstring

queryclj

(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.
sourceraw docstring

query-singleclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close