expose schemaType

This commit is contained in:
Ryan Tharp 2020-06-18 03:29:32 +00:00
parent 42c27add71
commit 734b522aa3
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,9 @@ const memoryUpdate = (model, filter, data, callback) => {
function start(config) {
// schema backend type
const schemaType = process.env.database__default__type || config && config.database && config.database.type ||'memory';
// FIXME: move to lib.config
// expose the set schemaType
module.exports.schemaType = schemaType;
//console.log('storage config', config)
const options = {
host: config && config.database && config.database.host || 'localhost',