jdbc-db2-connect
v2.0.0
Published
Connect in db2 using jdbc in node
Downloads
24
Maintainers
Readme
JDBC-DB2-CONNECT
Connector for connection with IBM's DB2 database that can be easily used for executing queries within Node.js
How To Use
Install the library as a dependency in your project.
npm install jdbc-db2-connect
Import the functions into your file.
const { DB2Initialize, DB2ExecuteQuery } = require("jdbc-db2-connect");
Start the connection to the database by providing the URL, user, and password.
await DB2Initialize({
url: "jdbc:as400://<server-ip>;naming=<name>;libraries=<libraries>",
user: "<user>",
password: "<password>",
});
Execute queries.
await DB2ExecuteQuery("<query>");