Socket
Socket
Sign inDemoInstall

marsdb-mongo

Package Overview
Dependencies
25
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    marsdb-mongo

MarsDB plugin for making all queries works through MongoDB, for rehydration


Version published
Weekly downloads
19
increased by280%
Maintainers
1
Install size
3.21 MB
Created
Weekly downloads
 

Readme

Source

MarsDB-Mongo

Build Status npm version Dependency Status

MarsDB plugin for making all queries works through MongoDB. It may be useful with any server-side application, based on MongoDB. Use awesome MarsDB's promise based interface and data processing pipeline. It also supports observable cursor, but it does not support scaling for now (observed only app update/remove/insert operations)

Usage

import Collection from ‘marsdb’;
import MarsMongo from 'marsdb-mongo';

// Setup MarsDB to use MongoDB as a backend
// and connect to a mongo database (async)
MarsMongo.configure({ url: 'mongodb://127.0.0.1/marsdb_awesome' });

// Now you can use configured collection, observe
// cursors and do cool things with the collection.
const users = new Collection(‘users’);
users.insert({name: 'Marsdb User'}).then((userId) => {
  console.log(userId);
});

Contributing

I’m waiting for your pull requests and issues. Don’t forget to execute gulp lint before requesting. Accepted only requests without errors.

License

See License

Keywords

FAQs

Last updated on 13 Feb 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc