Skip to content

krisajenkins/ob-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published