Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var oracledb = require('oracledb');
- var dbConfig = require('./dbconfig.js');
- oracledb.getConnection(
- {
- user : dbConfig.user,
- password : dbConfig.password,
- connectString : dbConfig.connectString
- },
- function(err, connection)
- {
- if (err) {
- console.error(err.message);
- return;
- }
- console.log('Connection was successful!');
- connection.close(
- function(err)
- {
- if (err) {
- console.error(err.message);
- return;
- }
- });
- });
Add Comment
Please, Sign In to add comment