This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
node-task/node_modules/mysql/index.js

27 lines
871 B
JavaScript
Raw Normal View History

2014-09-18 15:35:58 -04:00
var Connection = require('./lib/Connection');
var ConnectionConfig = require('./lib/ConnectionConfig');
var Types = require('./lib/protocol/constants/types');
var SqlString = require('./lib/protocol/SqlString');
var Pool = require('./lib/Pool');
var PoolConfig = require('./lib/PoolConfig');
var PoolCluster = require('./lib/PoolCluster');
exports.createConnection = function(config) {
return new Connection({config: new ConnectionConfig(config)});
};
exports.createPool = function(config) {
return new Pool({config: new PoolConfig(config)});
};
exports.createPoolCluster = function(config) {
return new PoolCluster(config);
};
exports.createQuery = Connection.createQuery;
exports.Types = Types;
exports.escape = SqlString.escape;
exports.escapeId = SqlString.escapeId;
exports.format = SqlString.format;