<commit_before>'use strict';

var Utils = require('../../utils');

module.exports = (function() {
  var QueryGenerator = { dialect: 'mssql' };

  return Utils._.extend(Utils._.clone(require('../mysql/query-generator')), QueryGenerator);
})();<commit_msg>Add showTablesQuery / dropTableQuery<commit_after>'use strict';

var Utils = require('../../utils');

module.exports = (function() {
  var QueryGenerator = {
    dialect: 'mssql',

    showTablesQuery: function () {
      return 'SELECT * FROM sys.Tables';
    },

    dropTableQuery: function(tableName, options) {
      options = options || {};

      var query = "IF OBJECT_ID('dbo.<%= tableName %>', 'U') IS NOT NULL DROP TABLE dbo.<%= tableName %>";

      return Utils._.template(query)({
        tableName: tableName
      });
    }
  };

  return Utils._.extend(Utils._.clone(require('../mysql/query-generator')), QueryGenerator);
})();
{'fraction_non_alphanumeric': 0.1870824053452116, 'fraction_numerical': 0.0, 'mean_word_length': 3.472636815920398, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5815273', 'n_tokens_mistral': 280, 'n_tokens_neox': 272, 'n_words': 58}