var Connection = require('./lib/connection.js');
var Pool = require('./lib/pool.js');
var PoolCluster = require('./lib/poolCluster.js');
var mysql = require('mysql');

exports.createConnection = function(config){
    return new Connection(config);
}

exports.createPool = function(config){
    return new Pool(config);
}

exports.createPoolCluster = function(config){
    return new PoolCluster(config);
}

exports.Types = mysql.Types;
exports.escape = mysql.escape;
exports.escapeId = mysql.escapeId;
exports.format = mysql.format;
exports.raw = mysql.raw;

exports.PoolCluster = PoolCluster;
exports.Pool = Pool;
exports.Connection = Connection;
