From bb6491942ea3b1acc6610f17a25863abd76a6922 Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones
msg.topic
must hold the query for the database, and the result is returned in msg.payload
.
msg.payload
can contain an array of values to bind to the topic.
Typically the returned payload will be an array of the result rows.
+Typically the returned payload will be an array of the result rows. Note: + these are of type RowDataPacket, and not a completely standard object.
If nothing is found for the key then null is returned,
-The reconnect timeout in milliseconds can be changed by adding a line to settings.js +
The reconnect timeout in milliseconds can be changed by adding a line in settings.js
mysqlReconnectTime: 30000,diff --git a/storage/mysql/package.json b/storage/mysql/package.json index 285e6b04..66a3afab 100644 --- a/storage/mysql/package.json +++ b/storage/mysql/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-mysql", - "version": "0.1.10", + "version": "0.2.0", "description": "A Node-RED node to read and write to a MySQL database", "dependencies": { "mysql": "^2.18.1"