From 62aedb12df10af600ed068741b6905a17a34ce2c Mon Sep 17 00:00:00 2001 From: unborn-andy <93290787+unborn-andy@users.noreply.github.com> Date: Tue, 4 Jan 2022 23:28:47 +0200 Subject: [PATCH] Update sqlite.html --- storage/sqlite/locales/en-US/sqlite.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/sqlite/locales/en-US/sqlite.html b/storage/sqlite/locales/en-US/sqlite.html index 0a8e69b2..1bd2becf 100644 --- a/storage/sqlite/locales/en-US/sqlite.html +++ b/storage/sqlite/locales/en-US/sqlite.html @@ -7,7 +7,7 @@

SQL Type Batch without response uses db.exec which runs all SQL statements in the provided string. No result rows are returned.

When using Via msg.topic or Batch without response msg.topic must hold the query for the database.

When using Via msg.topic, parameters can be passed in the query using a msg.payload array. Ex:
- msg.topic = `INSERT INTO test (name, surname) VALUES ($name, $surname)`
+ msg.topic = `INSERT INTO table (name, surname) VALUES ($name, $surname)`
msg.payload = ["John", "Smith"]
return msg;

When using Normal or Prepared Statement, the query must be entered in the node config.