<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Parametrized SQL queries are now supported in appdrag-cloudbackend]]></title><description><![CDATA[<p dir="auto">Hey dear community,</p>
<p dir="auto">We have updated our <a href="https://www.npmjs.com/package/appdrag-cloudbackend" rel="nofollow ugc">appdrag-cloudbackend NPM package</a> to allow parametrized SQL queries.</p>
<p dir="auto">If you want to compose the SQL query by yourself with input parameters you must escape the user inputs to avoid SQL injection with cloudbackend.escape() like this:</p>
<pre><code>cloudbackend.sqlSelect("SELECT * FROM Products WHERE category = '" + cloudbackend.escape( event.POST.category ) + "'")
.then( function(response) {
	console.log(response);
});
</code></pre>
<p dir="auto">But <strong>there is now a better way</strong> with parametrized queries, You can use <strong>?</strong> characters as placeholders for values you would like to have escaped. Multiple placeholders are mapped to values in the same order as passed.</p>
<pre><code>cloudbackend.sqlSelect('SELECT * FROM Products WHERE category = ? and id &gt; ?', ["Software", 500])
.then( function(response) {
	console.log(response);
});
</code></pre>
<p dir="auto">You can check the full documentation on NPM:<br />
<a href="https://www.npmjs.com/package/appdrag-cloudbackend" rel="nofollow ugc">https://www.npmjs.com/package/appdrag-cloudbackend</a></p>
]]></description><link>https://community.appdrag.com/topic/792/parametrized-sql-queries-are-now-supported-in-appdrag-cloudbackend</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 20:25:26 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/792.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Apr 2021 17:16:35 GMT</pubDate><ttl>60</ttl></channel></rss>