title: Best practices to escape string in AWS RDS DataService with Aurora postgres serverless
body: <p>I read from: <a href="https://aws.amazon.com/blogs/database/using-the-data-api-to-interact-with-an-amazon-aurora-serverless-mysql-database/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/database/using-the-data-api-to-interact-with-an-amazon-aurora-serverless-mysql-database/</a></p>
  <blockquote>
  <p>The RDSDataService client also supports parameterized queries by allowing you to use placeholder parameters in SQL statements. Escaped input values permit the resolution of these parameters at runtime. Parameterized queries are useful to prevent SQL injection attacks.</p>
  </blockquote>
  <p>But when I use it with Postgres, pass string: <code>myname's</code> and it breaks my SQL syntax. I don't sure how RDSDataService deal with SQL injection attacks as they written in document.</p>
  <p>Could anyone can help me explain this? and how to deal safe SQL String in this case?</p>
  <p><strong>UPDATED:</strong> Sorry for my bad. RDSDataService already escaped string literal when using Parameterized queries.</p>