title: Is there a benefit to using $1 over a Template Literal with pg-promise queries?
body: <p>Using <a href="https://github.com/vitaly-t/pg-promise" rel="nofollow noreferrer">pg-promise</a>, is there any benefit to using <code>$1</code> over Template Literals? Template Literals are just much more familiar to me, but I have to assume they do it differently for a reason with this package. </p>
  
  <p><strong>The "Normal" Way:</strong></p>
  
  <pre><code>db.any('SELECT * FROM users WHERE active = $1', [true])
  </code></pre>
  
  <p><strong>The Way I did it:</strong></p>
  
  <pre><code>const isTrue = true;
  
  db.any(`SELECT * FROM users WHERE active = ${isTrue}`)
  </code></pre>
  
  <p><strong>UPDATED The Way I did it:</strong></p>
  
  <pre><code>const isTrue = true;
  const name = 'Matt'
  db.any('SELECT * FROM users WHERE active = $1 AND name = $2', [isTrue, name])
  </code></pre>
  
  <p><strong>OR</strong></p>
  
  <pre><code>const isTrue = true;
  const name = 'Matt'
  db.any(`SELECT * FROM users WHERE active = $/isTrue/ AND name = $/name/`, {isTrue, name})
  
  </code></pre>