Permalink
Browse files

Get rid of unsupported +unix URL schemes

  • Loading branch information...
1 parent 5307bcb commit c2767dada0863746f133a0b38de6d9fa5bfac46c @grncdr committed Jan 11, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 index.js
  2. +2 −2 lib/adapters/index.js
View
@@ -32,7 +32,7 @@ function parseDbUrl (dbUrl) {
}
function getAdapter (protocol) {
- var name = protocol.replace(':', '')
+ var name = protocol.replace(':', '').split('+').shift()
if (!exports.adapters[name]) {
throw new Error("Unknown database driver: " + name)
}
@@ -1,3 +1,3 @@
-exports['mysql'] = exports['mysql+unix'] = require('./mysql');
-exports['postgres'] = exports['postgres+unix'] = require('./postgres');
+exports['mysql'] = require('./mysql');
+exports['postgres'] = require('./postgres');
exports['sqlite3'] = require('./sqlite3')

0 comments on commit c2767da

Please sign in to comment.