-
Notifications
You must be signed in to change notification settings - Fork 63
/
index.js
26 lines (21 loc) · 648 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;