Is there anyway I can connect teradata to nodejs server? I have use case where I need to pull teradata information in my rest APIs.
Can I use this npm package?
Yes. Absolutely. It will work just fine. Please find the configuration below.
var config = {
libpath: './jar/terajdbc4.jar',
libs: ['./jar/tdgssconfig.jar'],
drivername: 'com.teradata.jdbc.TeraDriver',
url: 'jdbc:teradata://myteradata.test.com',
// optionally
user: 'sr0898',
password: '***',
};
jdbc.initialize(config, function(err, res)
The key is to have the jars downloaded and referred to. Hope this helps.
Node.js Teradata Driver Now Available
The Teradata nodejs-driver node module is a Database API Specification v2.0 compliant driver for Node.js and the Teradata SQL Engine.
Includes
Supported Platforms
Github repo: https://github.com/Teradata/nodejs-driver
NPM Module: https://www.npmjs.com/package/teradata-nodejs-driver