Dependencies
This section describes the dependencies for using Node.js with the CData ODBC Driver for Presto.
Configure unixODBC (Linux and Mac Only)
node-odbc uses unixODBC on Linux and Mac, so make sure the driver is configured as described in Using unixODBC before continuing.
Install node-odbc
You can install node-odbc using NPM.
npm install odbc
Using node-odbc
Before using node-odbc, you need to require it.
var Database = require("odbc").Database;