sqlWrite
Uses a standard update or insert statement. See SQL Statements for how to create statements.
Last updated
Uses a standard update or insert statement. See SQL Statements for how to create statements.
Last updated
let result = await app.sqlWrite("updateAddress"); //this will use the statement "updateAddress". The @newName parameter is set to the field Value of "newName" of the app where we use this function
console.log("Rows changed: " + result);
<syntaxhighlight>
<syntaxhighlight lang="js">
let result = await app.sqlWrite("readAddress", {newName: "Hello World"}); //this will use the statement "updateAddress". The @newName parameter is set to "Hello World"
console.log("Rows changed: " + result);let result = await app.sqlWrite(
"readAddress",
{ newName: "Hello World" },
{ timeout: 45 }
); //this will wait for 45 seconds until you get a timeout
console.log("Rows changed: " + result);