Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-node-mysql

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-node-mysql - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

68-mysql.js

@@ -12,2 +12,3 @@

this.tz = n.tz || "local";
this.charset = (n.charset || "UTF8_GENERAL_CI").toUpperCase();

@@ -45,3 +46,4 @@ this.connected = false;

multipleStatements: true,
connectionLimit: 25
connectionLimit: 25,
charset: node.charset
});

@@ -141,3 +143,3 @@ }

}
return txt;
return txt;
}.bind(this));

@@ -144,0 +146,0 @@ };

{
"name": "node-red-node-mysql",
"version": "0.1.0",
"version": "0.1.1",
"description": "A Node-RED node to read and write to a MySQL database",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -18,16 +18,22 @@ node-red-node-mysql

This node uses the <b>query</b> operation against the configured database. This does allow both INSERTS and DELETES.
This node uses the **query** operation against the configured database. This does allow both INSERTS and DELETES.
By its very nature it allows SQL injection... so <i>be careful out there...</i>
By its very nature it allows SQL injection... so *be careful out there...*
The `msg.topic` must hold the <i>query</i> for the database, and the result is returned in `msg.payload`.
The `msg.topic` must hold the *query* for the database, and the result is returned in `msg.payload`.
Typically the returned payload will be an array of the result rows.
If nothing is found for the key then <i>null</i> is returned.
If nothing is found for the key then *null* is returned.
The reconnect retry timeout in milliseconds can be changed by adding a line to <b>settings.js</b>
<pre>mysqlReconnectTime: 30000,</pre></p>
The reconnect retry timeout in milliseconds can be changed by adding a line to **settings.js**
```javascript
mysqlReconnectTime: 30000,
```
The timezone can be set like GMT, EST5EDT, UTC, etc.
The charset defaults to the "old" Mysql 3 byte UTF. If you need support for emojis etc then use UTF8MB4.
Preparing Queries

@@ -50,5 +56,6 @@ -----

```
Documentation
-----
<a href="https://www.npmjs.com/package/mysql" target="_new">Documentation</a> of the used Node.js package

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc