Guest User

Untitled

a guest
Mar 10th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. var oracledb = require('oracledb');
  2. var dbConfig = require('./dbconfig.js');
  3.  
  4. oracledb.getConnection(
  5. {
  6. user : dbConfig.user,
  7. password : dbConfig.password,
  8. connectString : dbConfig.connectString
  9. },
  10. function(err, connection)
  11. {
  12. if (err) {
  13. console.error(err.message);
  14. return;
  15. }
  16. console.log('Connection was successful!');
  17.  
  18. connection.close(
  19. function(err)
  20. {
  21. if (err) {
  22. console.error(err.message);
  23. return;
  24. }
  25. });
  26. });
Add Comment
Please, Sign In to add comment