mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
update storage nodes info style
This commit is contained in:
@@ -6,7 +6,7 @@ A Node-Red node to read and write a local sqlite database.
|
||||
Install
|
||||
-------
|
||||
|
||||
Run the following command in the root directory of your Node-RED install
|
||||
Run the following command in your Node-RED user directory - typically `~/.node-red`
|
||||
|
||||
npm install node-red-node-sqlite
|
||||
|
||||
@@ -16,11 +16,12 @@ Usage
|
||||
|
||||
Allows basic access to a Sqlite database.
|
||||
|
||||
This node uses the <b>db.all</b> operation against the configured database. This does allow INSERTS, UPDATES and DELETES.
|
||||
This node uses the <b>db.all</b> operation against the configured database.
|
||||
This does allow INSERTS, UPDATES and DELETES.
|
||||
|
||||
By it's very nature it is SQL injection... so *be careful* out there...
|
||||
|
||||
**msg.topic** must hold the <i>query</i> for the database, and the result is returned in **msg.payload**.
|
||||
`msg.topic` must hold the <i>query</i> for the database, and the result is returned in `msg.payload`.
|
||||
|
||||
Typically the returned payload will be an array of the result rows, (or an error).
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "node-red-node-sqlite",
|
||||
"version" : "0.1.0",
|
||||
"version" : "0.1.1",
|
||||
"description" : "A sqlite node for Node-RED",
|
||||
"dependencies" : {
|
||||
"sqlite3" : "3.1.*"
|
||||
|
@@ -48,9 +48,9 @@
|
||||
<script type="text/x-red" data-help-name="sqlite">
|
||||
<p>Allows basic access to a Sqlite database.</p>
|
||||
<p>This node uses the <b>db.all</b> operation against the configured database. This does allow INSERTS, UPDATES and DELETES.
|
||||
By it's very nature it is SQL injection... so <i>be careful out there...</i></p>
|
||||
<p><b>msg.topic</b> must hold the <i>query</i> for the database, and the result is returned in <b>msg.payload</b>.</p>
|
||||
<p><b>msg.payload</b> can contain an array of values to bind to the topic.</p>
|
||||
By its very nature it is SQL injection... so <i>be careful out there...</i></p>
|
||||
<p><code>msg.topic</code> must hold the <i>query</i> for the database, and the result is returned in <code>msg.payload</code>.</p>
|
||||
<p><code>msg.payload</code> can contain an array of values to bind to the topic.</p>
|
||||
<p>Typically the returned payload will be an array of the result rows, (or an error).</p>
|
||||
<p>The reconnect timeout in milliseconds can be changed by adding a line to <b>settings.js</b>
|
||||
<pre>sqliteReconnectTime: 20000,</pre></p>
|
||||
|
Reference in New Issue
Block a user