juttle-mongodb-adapter

0.0.1 • Public • Published

🚧 juttle-mongodb-adapter travis npm

Juttle adapter to read from and write to MongoDB.

Background

This was one of my projects during MongoDB Skunkworks in February, 2017. It is merely a proof of concept and there are many, many things to do before it would be ready for any real use.

Interested in hacking on this? Check out the juttle-elastic-adapter for guidance on how to build things out further and testing. Happy to review any pull requests, but I don't have any concrete plans to work on this project in the future.

Usage

Installation

npm install -g juttle-engine juttle-mongodb-adapter;

Add the mongodb adapter to ~/.juttle/config.json:

{
  "adapters": {
    "mongodb": {
      "url": "mongodb://localhost:27017/test"
    }
  }
}

Now when you start-up juttle-engine, you'll be able to use mongodb collections.

write mongodb

Read a remote csv file and insert it into the vega.airports collection:

read http -url 'https://vega.github.io/vega-datasets/data/airports.csv' -format 'csv'
| write mongodb -ns 'vega.airports'

read mongodb

Read documents from the vega.airports collection and show results in a data table:

read mongodb -ns 'vega.airports'
| view table

License

Apache 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i juttle-mongodb-adapter

Weekly Downloads

2

Version

0.0.1

License

Apache-2.0

Last publish

Collaborators

  • imlucas