Liking cljdoc? Tell your friends :D

clj-storage.core


create-in-memory-storesclj

(create-in-memory-stores store-names)
source

create-memory-storeclj

(create-memory-store)
(create-memory-store data)

Create a memory store

Create a memory store
sourceraw docstring

empty-db-stores!clj

(empty-db-stores! stores-m)
source

Storecljprotocol

queryclj

(query e query)

Items are returned using a query map

Items are returned using a query map

aggregateclj

(aggregate e formula)

Process data records and return computed results

Process data records and return computed results

fetchclj

(fetch e k)

Retrieve item based on primary id

Retrieve item based on primary id

store!clj

(store! e k item)

Store item against the key k

Store item against the key k

delete-all!clj

(delete-all! e)

Delete all items from a coll

Delete all items from a coll

count-sinceclj

(count-since e date-time formula)

Count the number of records that since a date-time and after applying a formula. {} for an empty formula. This is meant only for collections that contain a created-at field.

Count the number of records that since a date-time and after applying a formula. {} for an empty formula. This is meant only for collections that contain a `created-at` field.

store-and-create-id!clj

(store-and-create-id! e item)

Store item and return with :_id created by mongo

Store item and return with :_id created by mongo

delete!clj

(delete! e k)

Delete item based on primary id

Delete item based on primary id

update!clj

(update! e k update-fn)

Update the item found using key k by running the update-fn on it and storing it

Update the item found using key k by running the update-fn on it and storing it
source

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

× close