(build-predicates filter-map)
Build predicate for selection function
Build predicate for selection function
(build-predicates-recur filter-keys filter-map element index)
Check if value in filter and single element from collection for same key are the same, and if key is :or do or matching procedure
Check if value in filter and single element from collection for same key are the same, and if key is :or do or matching procedure
(connect & [file-path-p])
Set database file path if needed and execute ttl-deletion function
Set database file path if needed and execute ttl-deletion function
(constraints-recur collection-vec collection-indexes new-obj i)
Check one index at a time if unique check its existance if not unique proceed to next index
Check one index at a time if unique check its existance if not unique proceed to next index
(constraints-recur-ii collection-vec fields new-obj i)
Iterate through collection for checking all its elements
Iterate through collection for checking all its elements
(constraints-recur-iii element fields new-obj i)
Iterate through element fields for checking the uniqueness of field
Iterate through element fields for checking the uniqueness of field
(constraints? collection-set collection-indexes new-obj)
Check for unique indexes
Check for unique indexes
(count-by-filter collection-name filter-map)
Count elements by filter
Count elements by filter
(create-ttl-index collection-name field index-name expire-after-seconds)
Create ttl (Time-To-Live) index on collection and particular element field (Date field) with a parameter expire-after-seconds that represents element deletion after number of seconds from date field
Create ttl (Time-To-Live) index on collection and particular element field (Date field) with a parameter expire-after-seconds that represents element deletion after number of seconds from date field
(create-unique-index collection-name fields index-name)
Create unique index on collection and particular element fields
Create unique index on collection and particular element fields
(delete-by-filter collection-name filter-map)
Delete elements by filter
Delete elements by filter
(delete-by-id collection-name id)
Delete element by id
Delete element by id
(drop-index collection-name index-name)
Drop index from collection by index name
Drop index from collection by index name
(exists-by-filter collection-name filter-map)
Check existence of element by filter
Check existence of element by filter
(find-by-filter collection-name
&
[filter-map projection-vector sort-map limit skip collation])
Find elements by filter and optional parameters: projection sort limit and skip
Find elements by filter and optional parameters: projection sort limit and skip
(find-by-id collection-name id)
Find object by id in collection
Find object by id in collection
(find-index collection-name index-name)
Find index on collection by index name
Find index on collection by index name
(find-one-by-filter collection-name & [filter-map projection-map])
Find element by filter and optional projection parameter
Find element by filter and optional projection parameter
(get-collection collection-name)
Get collection from database
Get collection from database
(index-exists? collection-name index-name)
Check if index exists on collection by index name
Check if index exists on collection by index name
(insert-many collection-name new-objs)
Insert many objects in database
Insert many objects in database
(insert-one collection-name new-obj & [collection-info])
Insert one object in collection
Insert one object in collection
(is-expired? date-value expire-after-seconds)
Check if ttl (Time-To-Live) index is expired
Check if ttl (Time-To-Live) index is expired
(list-indexes collection-name)
List all indexes for collection
List all indexes for collection
(match-or-vector or-vector element i)
Find if any element of or-vector is contained in element from collection
Find if any element of or-vector is contained in element from collection
(read-object collection-name)
Deserialize an object from disk
Deserialize an object from disk
(select-data collection-set filter-map)
Select data from set by custom predicate
Select data from set by custom predicate
(sort-compare-recur el1 el2 sort-vec i)
Generates custom sort comparator
Generates custom sort comparator
(ttl-deletion)
Time-To-Live function that executes every 1 minute for ttl index expiration check
Time-To-Live function that executes every 1 minute for ttl index expiration check
(update-by-id collection-name id update-obj)
Update element by id and its updated values
Update element by id and its updated values
(write-object collection-name clj-obj)
Serializes an object to disk so it can be opened again later. Careful: It will overwrite an existing file at file-path.
Serializes an object to disk so it can be opened again later. Careful: It will overwrite an existing file at file-path.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close