All Projects → krisajenkins → ob-mongo

krisajenkins / ob-mongo

Licence: other
Execute mongodb queries within org-mode blocks.

Programming Languages

emacs lisp
2029 projects

Org Babel Mongo

Support for MongoDB queries in org-mode blocks, like so:

db.employees.count({country: "gb"});

#+RESULTS:
: 15

Installation

If you’re hooked up to MELPA:

M-x package-refresh-contents
M-x package-install RET ob-mongo

Alternatively just grab the single ob-mongo.el file and install that in your preferred way.

Status

Alpha. Safe to use, but feature-poor. It’s still better than it not existing at all. ;-)

Options

Each block supports the following arguments:

ArgumentDescriptionExampleDefault
:dbDatabase name.#+BEGIN_SRC mongo :db staffNone.
:hostHost#+BEGIN_SRC mongo :host localhostNone.
:portPort#+BEGIN_SRC mongo :port 27018None.
:userUsername#+BEGIN_SRC mongo :user rootNone.
:passwordPassword#+BEGIN_SRC mongo :password superwordNone.
:mongoexecMongo executable#+BEGIN_SRC mongo :mongoexec mongo26“mongo”

All defaults are customizable with M-x customize-group RET ob-mongo.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].