title: How to drop and then recreate database with pg-promise?
body: <p>I would like to be able to reset my database from code by first dropping the database, then recreating it, then recreating all the tables, then repopulating it with data.</p>
  <p>But if I simply do this:</p>
  <pre><code>await db.any('DROP DATABASE $1',cn.database)
  </code></pre>
  <p>I get the following error:</p>
  <pre><code>error: syntax error at or near &quot;'testdb'&quot;
  </code></pre>
  <p>Most likely because I'm attempting to delete the database I'm currently connected to.</p>
  <p>So is there a way to delete or reset a database with pg-promise at runtime?</p>