(deep-merge & maps)
Like merge, but merges maps recursively.
Like merge, but merges maps recursively.
(defalias dest src)
Create a local var with the same value of a var from another namespace
Create a local var with the same value of a var from another namespace
(lazy-mapcat f coll)
maps a function over a collection and lazily concatenate all the results.
maps a function over a collection and lazily concatenate all the results.
(lazy-query q)
(lazy-query q start-from)
Takes a query as a lambda function and retunrs a lazy pagination over the items
Takes a query as a lambda function and retunrs a lazy pagination over the items
(query-results->paginated-response result)
(query-results->paginated-response tf {:keys [LastEvaluatedKey Items] :as e})
transform result of a dynamodb query to a paginated response with keys :cursor and :data. Takes an optional transformation function that will be applied to all items in the result.
transform result of a dynamodb query to a paginated response with keys :cursor and :data. Takes an optional transformation function that will be applied to all items in the result.
(rand-id)
Returns a 128 bit random id (based on UUID) in a short format. It generates a random UUID and then encodes it into base36.
Returns a 128 bit random id (based on UUID) in a short format. It generates a random UUID and then encodes it into base36.
(scroll qfn)
(scroll qfn {:keys [limit next-page] :as cursor})
Wraps the query function qfn
supplied in a lazy sequence. qfn
must accept one argument cursor
and return a map containing
keys :data and :cursor (next cursor). :data must be a collection. If
there are no more items to return, the :cursor must be nil.
Wraps the query function `qfn` supplied in a lazy sequence. `qfn` must accept one argument `cursor` and return a map containing keys :data and :cursor (next cursor). :data must be a collection. If there are no more items to return, the :cursor must be nil.
(slurp-bytes x)
Slurp the bytes from a slurpable thing
Slurp the bytes from a slurpable thing
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close