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