Liking cljdoc? Tell your friends :D

ndjson-db.core


clear-all-indices!!clj

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

clear-index!clj

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

id-fnsclj

source

id-key-fn-by-nameclj

(id-key-fn-by-name id-name id-type)
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 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.
sourceraw docstring

query-singleclj

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

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

× close