Namespace adapters
This commit is contained in:
parent
fd9d059846
commit
b3ce33805c
|
@ -66,7 +66,7 @@ function Schema(name, settings) {
|
|||
adapter = require('./adapters/' + name);
|
||||
} else {
|
||||
try {
|
||||
adapter = require(name);
|
||||
adapter = require('jugglingdb-' + name);
|
||||
} catch (e) {
|
||||
throw new Error('Adapter ' + name + ' is not defined, try\n npm install ' + name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue