title: How do I add charset to Knex.js connection string?
body: <p>I am using Knex.js for database connections. I would like to use a connection string instead of the connection object for connecting to a database and be able to specify the <code>charset</code>.</p>
  
  <p>Example:</p>
  
  <p><code>connection: 'mysql://root:secret@127.0.0.1:3306/test-db'</code> </p>
  
  <p>NOT</p>
  
  <pre><code>connection: {
      host     : '127.0.0.1',
      user     : 'root',
      password : 'secret',
      database : 'test-db',
      charset  : 'utf8'
  }
  </code></pre>
  
  <p>I have the connection string working.</p>
  
  <p>Could someone explain how I would specify the <code>charset</code> in the Knex.js connection string?</p>