code: function createSOQL(query) {
    var soql = [
      "SELECT ",
      createFieldsClause(query.fields, query.includes),
      " FROM ",
      query.table
    ].join("");
    var cond = createConditionClause(query.conditions);
    if (cond) {
      soql += " WHERE " + cond;
    }
    var orderby = createOrderByClause(query.sort);
    if (orderby) {
      soql += " ORDER BY " + orderby;
    }
    if (query.limit) {
      soql += " LIMIT " + query.limit;
    }
    if (query.offset) {
      soql += " OFFSET " + query.offset;
    }
    return soql;
  }
docs: Create SOQL
  @private