mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
sqlite small doc update, and bump dep library
This commit is contained in:
parent
ca0b01d10e
commit
2ca330fcb8
@ -8,7 +8,7 @@ Install
|
||||
|
||||
Run the following command in your Node-RED user directory - typically `~/.node-red`
|
||||
|
||||
npm install node-red-node-sqlite
|
||||
npm i --unsafe-perm node-red-node-sqlite
|
||||
|
||||
|
||||
Usage
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"name": "node-red-node-sqlite",
|
||||
"version": "0.3.5",
|
||||
"version": "0.3.6",
|
||||
"description": "A sqlite node for Node-RED",
|
||||
"dependencies": {
|
||||
"sqlite3": "^4.0.2"
|
||||
"sqlite3": "^4.0.4"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -106,7 +106,7 @@ module.exports = function(RED) {
|
||||
if (node.sqlquery == "prepared"){
|
||||
if (typeof node.sql === 'string' && typeof msg.params !== "undefined" && typeof msg.params === "object") {
|
||||
if (node.sql.length > 0) {
|
||||
node.mydbConfig.db.all(node.sql, msg.params, function(err, row) {
|
||||
node.mydbConfig.db.all(node.sql, msg.params, function(err, row) {
|
||||
if (err) { node.error(err,msg); }
|
||||
else {
|
||||
msg.payload = row;
|
||||
|
Loading…
x
Reference in New Issue
Block a user