mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-08-03 12:31:01 +08:00
Initial work on the server
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
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');
|
||||
|
||||
exports.createConnection = function(config) {
|
||||
return new Connection({config: new ConnectionConfig(config)});
|
||||
};
|
||||
|
||||
exports.createPool = function(config) {
|
||||
return new Pool({config: new PoolConfig(config)});
|
||||
};
|
||||
|
||||
exports.createQuery = Connection.createQuery;
|
||||
|
||||
exports.Types = Types;
|
||||
exports.escape = SqlString.escape;
|
||||
exports.escapeId = SqlString.escapeId;
|
||||
Reference in New Issue
Block a user