var db_pool = require('../../db-query-assistant');
var config = require('./config.dummy');

var get_default_driver = function() {
  var db = db_pool.create('dummy');
  return db;
}

var get_driver = function() {
  var db = db_pool.create('dummy', config.db, config.db_pool);
  return db;
}

module.exports = {
  get_default_driver: get_default_driver,
  get_driver: get_driver,
}


@@ -288,93 +288,442 @@
 %0A%7D%0A%0A
-module.exports = %7B%0A  get_default_driver: get_default_driver,%0A  get_driver: get_driver
+var query_string = function() %7B%0A  return %22string%22;%0A%7D%0A%0Avar query_array = function() %7B%0A  return %5B%22array%22%5D;%0A%7D%0A%0Avar query_object = function(query) %7B%0A  return query.sql(%22object%22);%0A%7D%0A%0Avar query_false = function(query) %7B%0A  return false;%0A%7D%0A%0Amodule.exports = %7B%0A  get_default_driver: get_default_driver,%0A  get_driver: get_driver,%0A  query_string: query_string,%0A  query_array: query_array,%0A  query_object: query_object,%0A  query_false: query_false
 ,%0A%7D%0A

add common query testing functions to util lib.