node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป



A Node-RED node to read and write to a DB2 database.


Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-contrib-db2


Allows basic access to a DB2 database.

The msg.database must hold the database

The msg.topic must hold the query

and the result is returned in msg.payload.

Each row will send a new payload, so you can work with big results.

Typically the returned payload will be an array of the result rows.

If nothing is found for the key then null is returned.