Can I connect nodejs with teradata (any nodejs npm for this)?

Anyway, can I connect teradata to the nodejs server? I use the case where I need to pull teradata information into my leisure APIs.

Can i use this npm package?

+4
source share
2 answers

Yes. Absolutely. Everything will be fine. Below is the configuration.

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 download and reference the jars. Hope this helps.

+4
source

Node.js Teradata driver is now available

The Teradata node module nodejs-driver is a driver compatible with the Database API v2.0 specification for Node.js and Teradata SQL Engine.

Includes

  • Typescript / Javascript npm module
  • , API v2.0
  • 127
  • , , , ,

  • Node.js:
    • 8., 9., 10., 11.
  • :
    • Apple MacOS, Microsoft Windows, Linux

Github: https://github.com/Teradata/nodejs-driver

NPM: https://www.npmjs.com/package/teradata-nodejs-driver

0

All Articles