Liking cljdoc? Tell your friends :D

db-lib.core


build-predicatesclj

(build-predicates filter-map)

Build predicate for selection function

Build predicate for selection function
sourceraw docstring

build-predicates-recurclj

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

collectionsclj

source

collections-namesclj

source

collections-sufixclj

source

connectclj

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

constraints-recurclj

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

constraints-recur-iiclj

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

constraints-recur-iiiclj

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

constraints?clj

(constraints? collection-set collection-indexes new-obj)

Check for unique indexes

Check for unique indexes
sourceraw docstring

count-by-filterclj

(count-by-filter collection-name filter-map)

Count elements by filter

Count elements by filter
sourceraw docstring

create-ttl-indexclj

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

create-unique-indexclj

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

delete-by-filterclj

(delete-by-filter collection-name filter-map)

Delete elements by filter

Delete elements by filter
sourceraw docstring

delete-by-idclj

(delete-by-id collection-name id)

Delete element by id

Delete element by id
sourceraw docstring

drop-indexclj

(drop-index collection-name index-name)

Drop index from collection by index name

Drop index from collection by index name
sourceraw docstring

exists-by-filterclj

(exists-by-filter collection-name filter-map)

Check existence of element by filter

Check existence of element by filter
sourceraw docstring

exists-by-filter-fn-refclj

source

file-extensionclj

source

file-pathclj

source

find-by-filterclj

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

find-by-idclj

(find-by-id collection-name id)

Find object by id in collection

Find object by id in collection
sourceraw docstring

find-indexclj

(find-index collection-name index-name)

Find index on collection by index name

Find index on collection by index name
sourceraw docstring

find-one-by-filterclj

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

get-collectionclj

(get-collection collection-name)

Get collection from database

Get collection from database
sourceraw docstring

index-exists?clj

(index-exists? collection-name index-name)

Check if index exists on collection by index name

Check if index exists on collection by index name
sourceraw docstring

insert-manyclj

(insert-many collection-name new-objs)

Insert many objects in database

Insert many objects in database
sourceraw docstring

insert-oneclj

(insert-one collection-name new-obj & [collection-info])

Insert one object in collection

Insert one object in collection
sourceraw docstring

is-expired?clj

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

list-indexesclj

(list-indexes collection-name)

List all indexes for collection

List all indexes for collection
sourceraw docstring

list-indexes-fn-refclj

source

match-or-vectorclj

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

read-objectclj

(read-object collection-name)

Deserialize an object from disk

Deserialize an object from disk
sourceraw docstring

select-dataclj

(select-data collection-set filter-map)

Select data from set by custom predicate

Select data from set by custom predicate
sourceraw docstring

sort-compare-recurclj

(sort-compare-recur el1 el2 sort-vec i)

Generates custom sort comparator

Generates custom sort comparator
sourceraw docstring

ttl-deletionclj

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

ttl-deletion-fn-refclj

source

ttl-deletion-threadclj

source

ttl-indexes-sufixclj

source

unique-indexes-sufixclj

source

update-by-idclj

(update-by-id collection-name id update-obj)

Update element by id and its updated values

Update element by id and its updated values
sourceraw docstring

write-objectclj

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

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

× close