From 3c4337f2383c60ae398da5f866d6fad3f1d72a39 Mon Sep 17 00:00:00 2001
From: arneman <7462507+arneman@users.noreply.github.com>
Date: Fri, 3 Apr 2020 23:13:10 +0200
Subject: [PATCH] add an example for a prepared sql query (#621)
An example sql query for the given parameter example would help users to understand how they could use prepared statements.
---
storage/sqlite/sqlite.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/storage/sqlite/sqlite.html b/storage/sqlite/sqlite.html
index 65f30774..ceeca265 100644
--- a/storage/sqlite/sqlite.html
+++ b/storage/sqlite/sqlite.html
@@ -74,7 +74,8 @@
$name:"John Doe"
}
Parameter object names must match parameters set up in the Prepared Statement. If you get the error SQLITE_RANGE: bind or column index out of range
- be sure to include $ on the parameter object key.
insert into user_table (user_id, user) VALUES ($id, $name);
Using any SQL Query, the result is returned in msg.payload
Typically the returned payload will be an array of the result rows, (or an error).
You can load sqlite extensions by inputting a msg.extension
property containing the full