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?
js or Node is an open-source, cross-platform, JavaScript runtime environment(JSRE) that executes JavaScript code outside of a web browser. npm is a package manager(like Nuget package manager in . NET -Microsoft ) for the JavaScript programming language.
To publish and install packages to and from the public npm registry or a private npm registry, you must install Node. js and the npm command line interface using either a Node version manager or a Node installer. We strongly recommend using a Node version manager like nvm to install Node.
Node. js is officially supported on Linux, macOS and Microsoft Windows 8.1 and Server 2012 (and later), with tier 2 support for SmartOS and IBM AIX and experimental support for FreeBSD. OpenBSD also works, and LTS versions available for IBM i (AS/400).
Node.js allows you to run JavaScript on the server.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With