0.2.0 • Published 5 years ago

dashbi-db-driver-mongodb v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

dashbi-db-driver-mongodb

MongoDB driver for Dashbi.

Usage

Install:

npm install --save dashbi-db-driver-mongodb

Then tell Dashbi to use it:

const dashboard = new Dashbi({
  database: {
    driver: 'mongodb',
    settings: {
      ...
    }
  }
});

Settings

NameTypeDefaultDescription
hostStringlocalhostMongoDB hostname
portNumber27017MongoDB port
dbNameStringdashbiDatabase name

Auto-clean and Limit Per Source ID

This driver has cleanUp method and limit per source is 1,000,000. This means that Dashbi DatabaseController will regulary clean up each source, so there will be no more then 1 milion records per source.

0.2.0

5 years ago

0.1.0

5 years ago