krisajenkins / ob-mongo

Execute mongodb queries within org-mode blocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Execute mongodb queries within org-mode blocks.


Languages

Language:Emacs Lisp 100.0%