code: function positionBindings(sql) {
  
    let questionCount = 0;
    return sql.replace(/(\\*)(\?)/g, (match, escapes) => {
      if (escapes.length % 2) {
        return '?';
      }
      questionCount++;
      return `\$${questionCount}`;
    });
  }
docs: Position the bindings for the query. The escape sequence for question mark is \? (e.g. knex.raw("\\?") since javascript requires '\' to be escaped too...)