Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marverix/dashbi-db-driver-mongodb
MongoDB driver for Dashbi
https://github.com/marverix/dashbi-db-driver-mongodb
dashbi dashbi-db-driver mongodb
Last synced: about 19 hours ago
JSON representation
MongoDB driver for Dashbi
- Host: GitHub
- URL: https://github.com/marverix/dashbi-db-driver-mongodb
- Owner: marverix
- License: isc
- Archived: true
- Created: 2019-08-28T14:07:47.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T02:34:09.000Z (over 3 years ago)
- Last Synced: 2024-08-03T15:06:12.242Z (3 months ago)
- Topics: dashbi, dashbi-db-driver, mongodb
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dashbi-db-driver-mongodb
MongoDB driver for Dashbi.
## Usage
Install:
```sh
npm install --save dashbi-db-driver-mongodb
```Then tell Dashbi to use it:
```js
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.