Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

marverix/dashbi-db-driver-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Name Type Default Description
host String localhost MongoDB hostname
port Number 27017 MongoDB port
dbName String dashbi Database 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.