You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
443 B
21 lines
443 B
|
|
var env = require('../').env;
|
|
|
|
console.log('environment: %s', env.type);
|
|
|
|
var col;
|
|
switch (env.type) {
|
|
case 'node':
|
|
col = require('./collection/node');
|
|
break;
|
|
case 'mongo':
|
|
col = require('./collection/mongo');
|
|
break;
|
|
case 'browser':
|
|
col = require('./collection/browser');
|
|
break;
|
|
default:
|
|
throw new Error('missing collection implementation for environment: ' + env.type);
|
|
}
|
|
|
|
module.exports = exports = col;
|
|
|