Provides convenience functions for performing most commonly used MongoDB commands.
For a lower-level API that gives maximum flexibility, see monger.core/command. To use
MongoDB 2.2 Aggregation Framework, see monger.collection/aggregate.
Related documentation guides:
Provides convenience functions for performing most commonly used MongoDB commands. For a lower-level API that gives maximum flexibility, see `monger.core/command`. To use MongoDB 2.2 Aggregation Framework, see `monger.collection/aggregate`. Related documentation guides: * http://clojuremongodb.info/articles/commands.html * http://clojuremongodb.info/articles/aggregation.html * http://clojuremongodb.info/articles/mapreduce.html
(admin-command conn m)Executes a command on the admin database
Executes a command on the admin database
(collection-stats database collection)(compact db collection)Rewrites and defragments a single collection using the compact command. This also forces all indexes on the collection to be rebuilt
Rewrites and defragments a single collection using the compact command. This also forces all indexes on the collection to be rebuilt
(convert-to-capped db collection size)Converts an existing, non-capped collection to a capped collection using the convertToCapped command
Converts an existing, non-capped collection to a capped collection using the convertToCapped command
(db-stats database)(empty-capped db collection)Removes all documents from a capped collection using the emptycapped command
Removes all documents from a capped collection using the emptycapped command
(raw-admin-command conn cmd)Executes a command on the admin database
Executes a command on the admin database
(reindex-collection database collection)Forces an existing collection to be reindexed using the reindexCollection command
Forces an existing collection to be reindexed using the reindexCollection command
(rename-collection db from to)Changes the name of an existing collection using the renameCollection command
Changes the name of an existing collection using the renameCollection command
(server-status db)(top conn)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |