Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. const knex = require('knex');
  2.  
  3. // connection database
  4. const dbmdlog = knex({
  5. client: 'oracle',
  6. connection: {
  7. host: 'localhost',
  8. user: 'root',
  9. password: 'root',
  10. database: 'mydb',
  11. odbc: 'MYDB'
  12. }
  13. });
  14.  
  15. module.exports = dbmdlogp;
  16.  
  17. Unhandled rejection TypeError: _this2.driver.connect is not a function
  18. at /var/www/html/myapp/node_modules/knex/lib/dialects/oracle/index.js:143:21
  19. at Promise._execute (/var/www/html/myapp/node_modules/bluebird/js/release/debuggability.js:299:9)
  20. at Promise._resolveFromExecutor (/var/www/html/myapp/node_modules/bluebird/js/release/promise.js:481:18)
  21. at new Promise (/var/www/html/myapp/node_modules/bluebird/js/release/promise.js:77:14)
  22. at Client_Oracle.acquireRawConnection (/var/www/html/myapp/node_modules/knex/lib/dialects/oracle/index.js:142:12)
  23. at Object.create (/var/www/html/myapp/node_modules/knex/lib/client.js:231:16)
  24. at Pool._createResource (/var/www/html/myapp/node_modules/generic-pool/lib/generic-pool.js:326:17)
  25. at Pool.dispense [as _dispense] (/var/www/html/myapp/node_modules/generic-pool/lib/generic-pool.js:314:12)
  26. at Pool.acquire (/var/www/html/myapp/node_modules/generic-pool/lib/generic-pool.js:392:8)
  27. at /var/www/html/myapp/node_modules/knex/lib/client.js:281:19
  28. at Promise._execute (/var/www/html/myapp/node_modules/bluebird/js/release/debuggability.js:299:9)
  29. at Promise._resolveFromExecutor (/var/www/html/myapp/node_modules/bluebird/js/release/promise.js:481:18)
  30. at new Promise (/var/www/html/myapp/node_modules/bluebird/js/release/promise.js:77:14)
  31. at Client_Oracle.acquireConnection (/var/www/html/myapp/node_modules/knex/lib/client.js:272:12)
  32.  
  33. at /var/www/html/myapp/node_modules/knex/lib/runner.js:200:30
  34. at Promise._execute (/var/www/html/myapp/node_modules/bluebird/js/release/debuggability.js:299:9)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement