-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67a7aa5
commit 6f1cde1
Showing
1 changed file
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
# MongoDB Shell Extensions | ||
Simple collection of utilities to make the life inside of the MongoDB shell a little bit easier | ||
|
||
# How to Use | ||
...TODO... | ||
Collection of utilities to make the life inside of the MongoDB shell a little bit easier | ||
|
||
# How to Install | ||
You need to have installed the latest version of [NodeJS](http://nodejs.org) | ||
* `npm install --global bower grunt-cli` | ||
* then inside the root directory of this project | ||
* `npm install` | ||
* `bower install` | ||
* `grunt install` | ||
Install as a global module of npm | ||
``` | ||
npm install --global mongodb-shell-extensions | ||
``` | ||
You will find a `.mongorc` file in your home directory that contains all the extensions. This file will be loaded automatically in the next MongoDB shell session | ||
|
||
The next time you'll start a MongoDB shell you should see a message like this (the message will not be displayed if the shell is in quiet mode `mongo --quiet`) | ||
``` | ||
$ mongo | ||
MongoDB shell version: 2.4.8 | ||
connecting to: test | ||
+ MongoDB Shell Extensions by Gabriele Lana <[email protected]> | ||
> | ||
``` | ||
|
||
# TODO | ||
* printcsv method | ||
* have some methods to generate fake data/documents | ||
* execute same query on multiple collections and merge the results (scatter & gather) | ||
# How to Disable | ||
If you want to temporary disable the extensions you can start the MongoDB shell with the `--norc` flag | ||
``` | ||
$ mongo --norc | ||
MongoDB shell version: 2.4.8 | ||
connecting to: test | ||
> | ||
``` | ||
|
||
# How to Use | ||
...TODO... |