
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
node-red-contrib-jdbc
Advanced tools
Node-RED node to access database using JDBC driver
The JDBC node has the ability to read and write various databases like PostgreSQL and Oracle databases. By the JDBC driver, this node can access these databases without the Node.js module for them.
(1) Install Java environment on Ubuntu
(2) Run the following command in your Node-RED user directory - typically ~/.node-red
npm install node-red-contrib-jdbc
(1) Start PostgreSQL server to test
docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=password -d postgres
(2) Download JDBC driver to the user directory
wget https://jdbc.postgresql.org/download/postgresql-42.2.23.jar
(3) Start Node-RED process in the user directory
node-red
(4) Place JDBC node and configure property on the Node-RED flow editor
If you would like to use the other database, you can specify the other JDBC driver file on the property.
(5) Create flow to pass SQL query to the JDBC node
After executing the JDBC node, it outputs the result of the SQL query.
You can import the example flow from the menu -> Import -> Examples -> node-red-contrib-jdbc -> postgres.
FAQs
Node-RED node to access database using JDBC driver
The npm package node-red-contrib-jdbc receives a total of 4 weekly downloads. As such, node-red-contrib-jdbc popularity was classified as not popular.
We found that node-red-contrib-jdbc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.