mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-14 01:10:13 +08:00
Initial work on the server
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
|
||||
var ConnectionConfig = require('./ConnectionConfig');
|
||||
|
||||
module.exports = PoolConfig;
|
||||
function PoolConfig(options) {
|
||||
this.connectionConfig = new ConnectionConfig(options);
|
||||
this.createConnection = options.createConnection || undefined;
|
||||
this.waitForConnections = (options.waitForConnections === undefined)
|
||||
? true
|
||||
: Boolean(options.waitForConnections);
|
||||
this.connectionLimit = (options.connectionLimit === undefined)
|
||||
? 10
|
||||
: Number(options.connectionLimit);
|
||||
}
|
||||
Reference in New Issue
Block a user