2016-11-04 09:03:13 +01:00
|
|
|
'use strict';
|
2016-11-04 09:23:46 +01:00
|
|
|
const eventDbCreator = require('./event');
|
2016-11-04 09:03:13 +01:00
|
|
|
const clientInstancesDbCreator = require('./client-instances');
|
|
|
|
const clientMetricsDbCreator = require('./client-metrics');
|
|
|
|
const clientStrategiesDbCreator = require('./client-strategies');
|
|
|
|
|
|
|
|
module.exports = (db) => ({
|
2016-11-04 09:23:46 +01:00
|
|
|
eventDb: eventDbCreator(db),
|
2016-11-04 09:03:13 +01:00
|
|
|
clientInstancesDb: clientInstancesDbCreator(db),
|
|
|
|
clientMetricsDb: clientMetricsDbCreator(db),
|
|
|
|
clientStrategiesDb: clientStrategiesDbCreator(db),
|
|
|
|
});
|