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

find-indexclj

(find-index indexes-vector index-name i)

Helper function for index exists function

Helper function for index exists function
sourceraw docstring

get-collectionclj

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

Get reference to collection from particular database

Get reference to collection from particular database
sourceraw docstring

mongodb-connectclj

(mongodb-connect db-uri db-name & [is-mobile])

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-idclj

(mongodb-delete-by-id collection _id)

Delete record by _id

Delete record by _id
sourceraw docstring

mongodb-delete-manyclj

(mongodb-delete-many collection filter-map)

Delete records when filter is matched

Delete records when filter is matched
sourceraw docstring

mongodb-delete-oneclj

(mongodb-delete-one collection filter-map)

Delete one record by filter

Delete one record by filter
sourceraw docstring

mongodb-disconnectclj

(mongodb-disconnect & [connection])

Disconnect from mongo

Disconnect from mongo
sourceraw docstring

mongodb-drop-collectionclj

(mongodb-drop-collection collection)

Drops collection

Drops collection
sourceraw docstring

mongodb-drop-databaseclj

(mongodb-drop-database db-name & [connection])

Drop mongo database

Drop mongo database
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-get-databaseclj

(mongodb-get-database db-name & [connection])

Get database from connection

Get database from connection
sourceraw docstring

mongodb-get-indexclj

(mongodb-get-index collection index-name)

Check if mongo index exists

Check if mongo index exists
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-make-connectionclj

(mongodb-make-connection db-uri)

Creates connection to mongo client

Creates connection to mongo client
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-manyclj

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

Update many documents that match filter

Update many documents that match filter
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

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

× close