不要怂,就是干,撸起袖子干!

Commit decde794 by Mick Hansen Committed by Jan Aagaard Meier

allow queue use to be sent as an option

1 parent 82e01b5d
...@@ -15,7 +15,7 @@ module.exports = (function() { ...@@ -15,7 +15,7 @@ module.exports = (function() {
this.maxConcurrentQueries = (this.config.maxConcurrentQueries || 50) this.maxConcurrentQueries = (this.config.maxConcurrentQueries || 50)
this.poolCfg = this.config.pool this.poolCfg = this.config.pool
this.pendingQueries = 0; this.pendingQueries = 0;
this.useQueue = false; this.useQueue = config.queue !== undefined ? config.queue : true;
var self = this var self = this
......
...@@ -36,7 +36,8 @@ module.exports = (function() { ...@@ -36,7 +36,8 @@ module.exports = (function() {
query: {}, query: {},
sync: {}, sync: {},
logging: console.log, logging: console.log,
omitNull: false omitNull: false,
queue: true
}, options || {}) }, options || {})
if(this.options.logging === true) { if(this.options.logging === true) {
...@@ -51,7 +52,8 @@ module.exports = (function() { ...@@ -51,7 +52,8 @@ module.exports = (function() {
host : this.options.host, host : this.options.host,
port : this.options.port, port : this.options.port,
pool : this.options.pool, pool : this.options.pool,
protocol: this.options.protocol protocol: this.options.protocol,
queue: this.options.queue
} }
var ConnectorManager = require("./dialects/" + this.options.dialect + "/connector-manager") var ConnectorManager = require("./dialects/" + this.options.dialect + "/connector-manager")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!