Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const knex = require('knex');
- // connection database
- const dbmdlog = knex({
- client: 'oracle',
- connection: {
- host: 'localhost',
- user: 'root',
- password: 'root',
- database: 'mydb',
- odbc: 'MYDB'
- }
- });
- module.exports = dbmdlogp;
- Unhandled rejection TypeError: _this2.driver.connect is not a function
- at /var/www/html/myapp/node_modules/knex/lib/dialects/oracle/index.js:143:21
- at Promise._execute (/var/www/html/myapp/node_modules/bluebird/js/release/debuggability.js:299:9)
- at Promise._resolveFromExecutor (/var/www/html/myapp/node_modules/bluebird/js/release/promise.js:481:18)
- at new Promise (/var/www/html/myapp/node_modules/bluebird/js/release/promise.js:77:14)
- at Client_Oracle.acquireRawConnection (/var/www/html/myapp/node_modules/knex/lib/dialects/oracle/index.js:142:12)
- at Object.create (/var/www/html/myapp/node_modules/knex/lib/client.js:231:16)
- at Pool._createResource (/var/www/html/myapp/node_modules/generic-pool/lib/generic-pool.js:326:17)
- at Pool.dispense [as _dispense] (/var/www/html/myapp/node_modules/generic-pool/lib/generic-pool.js:314:12)
- at Pool.acquire (/var/www/html/myapp/node_modules/generic-pool/lib/generic-pool.js:392:8)
- at /var/www/html/myapp/node_modules/knex/lib/client.js:281:19
- at Promise._execute (/var/www/html/myapp/node_modules/bluebird/js/release/debuggability.js:299:9)
- at Promise._resolveFromExecutor (/var/www/html/myapp/node_modules/bluebird/js/release/promise.js:481:18)
- at new Promise (/var/www/html/myapp/node_modules/bluebird/js/release/promise.js:77:14)
- at Client_Oracle.acquireConnection (/var/www/html/myapp/node_modules/knex/lib/client.js:272:12)
- at /var/www/html/myapp/node_modules/knex/lib/runner.js:200:30
- 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