MySQL is a Node-RED node that wraps the node.js mysql2
module to provide query operations against a configured MySQL database.
This enables a Node-RED flow to execute any valid MySQL queries, including
SELECT
, INSERT
, 'UPDATEand
DELETE` operations on the database.
On input uses the following msg
properties to define the query:
msg.topic
holds the SQL query, andmsg.payload
optionally holds any bind values used in the query
Some query operations (e.g. SELECT
) can return a result set, and this is