Liking cljdoc? Tell your friends :D

mongo-lib.core


build-clojure-documentclj

(build-clojure-document data-value)

Convert java Bson like object into clojure map or vector

Convert java Bson like object into clojure map or vector
sourceraw docstring

build-collationclj

(build-collation collation-map)

Build collation java object aou of clojure map

Build collation java object aou of clojure map
sourceraw docstring

build-documentclj

(build-document clj-document & [data-type])

Convert clojure like object into java Bson like object

Convert clojure like object into java Bson like object
sourceraw docstring

connclj

source

dbclj

source

get-collectionclj

(get-collection db collection-name & [document-class])

Get reference to collection from particular database

Get reference to collection from particular database
sourceraw docstring

mongodb-connectclj

(mongodb-connect db-uri db-name)

Connect to mongo db

Connect to mongo db
sourceraw docstring

mongodb-countclj

(mongodb-count collection & [entity-filter])

Count records from particular collection matching entity-filter

Count records from particular collection matching entity-filter
sourceraw docstring

mongodb-create-indexclj

(mongodb-create-index collection
                      fields
                      index-name
                      unique
                      &
                      [expire-after-seconds])

Create mongo index on particular collection make it unique or not

Create mongo index on particular collection make it unique or not
sourceraw docstring

mongodb-delete-by-filterclj

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

Delete records when filter is matched

Delete records when filter is matched
sourceraw docstring

mongodb-delete-by-idclj

(mongodb-delete-by-id collection _id)

Delete record by _id

Delete record by _id
sourceraw docstring

mongodb-disconnectclj

(mongodb-disconnect)

Disconnect from mongo

Disconnect from mongo
sourceraw docstring

mongodb-drop-indexclj

(mongodb-drop-index collection index-name)

Drop mongo index on particular collection

Drop mongo index on particular collection
sourceraw docstring

mongodb-existsclj

(mongodb-exists collection & [entity-filter])

Does any or records that match filter exists

Does any or records that match filter exists
sourceraw docstring

mongodb-findclj

(mongodb-find collection
              &
              [filter-map projection-map sort-map limit skip collation])

Find records that match filter-map return only fields mentined in projection-map sort by fields from sort-map ascending 1 or descending -1 limit final count of results skip number of records from start and return rest collation language key codes

Find records that match filter-map
return only fields mentined in projection-map
sort by fields from sort-map ascending 1 or descending -1
limit final count of results
skip number of records from start and return rest
collation language key codes
sourceraw docstring

mongodb-find-by-idclj

(mongodb-find-by-id collection _id & [projection-map])

Find record by id

Find record by id
sourceraw docstring

mongodb-find-oneclj

(mongodb-find-one collection & [filter-map projection-map])

Find one record that matches filter-map with only fields mentioned in projection-map

Find one record that matches filter-map
with only fields mentioned in projection-map
sourceraw docstring

mongodb-index-exists?clj

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

Check if mongo index exists

Check if mongo index exists
sourceraw docstring

mongodb-insert-manyclj

(mongodb-insert-many collection insert-documents-vector)

Insert many records in particular collection

Insert many records in particular collection
sourceraw docstring

mongodb-insert-oneclj

(mongodb-insert-one collection insert-document)

Insert one record in particular collection

Insert one record in particular collection
sourceraw docstring

mongodb-list-indexesclj

(mongodb-list-indexes collection)

List all mongo indexes of particular collection as clojure maps

List all mongo indexes of particular collection as clojure maps
sourceraw docstring

mongodb-update-by-idclj

(mongodb-update-by-id collection _id update-document)

Update record by id in particular collection with update-document

Update record by id in particular collection with update-document
sourceraw docstring

mongodb-update-oneclj

(mongodb-update-one collection filter-map update-map)

Update one document that matches filter

Update one document that matches filter
sourceraw docstring

pretty-printclj

(pretty-print)

Test function

Test function
sourceraw docstring

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

× close