<commit_before>var SqlString = exports;

SqlString.escapeId = function (val) {
  return '`' + val.replace(/`/g, '``').replace(/\./g, '`.`') + '`';
};<commit_msg>Change .escapeId to allow people to forbid qualified identifiers (#342)<commit_after>var SqlString = exports;

SqlString.escapeId = function (val, forbidQualified) {
  if (forbidQualified) {
    return '`' + val.replace(/`/g, '``') + '`';
  }
  return '`' + val.replace(/`/g, '``').replace(/\./g, '`.`') + '`';
};
{'fraction_non_alphanumeric': 0.2510548523206751, 'fraction_numerical': 0.006329113924050633, 'mean_word_length': 4.053191489361702, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5799258', 'n_tokens_mistral': 181, 'n_tokens_neox': 173, 'n_words': 32}