code: function runQuery(query, connection) {
    const { maxRows } = connection;
    const limit = maxRows < CRATE_LIMIT ? maxRows : CRATE_LIMIT;
  
    if (connection.port) {
      crate.connect(connection.host, connection.port);
    } else {
      crate.connect(connection.host);
    }
  
    return crate
      .execute(query)
      .then(res => {
        const results = {
          rows: res.json,
          incomplete: false
        };
  
        if (results.rows.length >= limit) {
          results.incomplete = true;
          results.rows = results.rows.slice(0, limit);
        }
  
        return results;
      })
      .catch(err => {
        throw new Error(err.message);
      });
  }
docs: Run query for connection
  Should return { rows, incomplete }
  @param {string} query
  @param {object} connection