mysql> select * from information_schema.processlist order by TIME;
+--------+--------+------------------------+--------+----------------+------+-------+------+
| ID | USER | HOST | DB | COMMAND | TIME |STATE | INFO |
+--------+--------+------------------------+--------+----------------+------+-------+------+
| 795202 | testDB | example.test.com:47132 | testDB | Sleep | 2 | | NULL |
| 795206 | testDB | example.test.com:47138 | testDB | Sleep | 3 | | NULL |
| 795166 | testDB | example.test.com:47090 | testDB | Sleep | 6 | | NULL |
| 795158 | testDB | example.test.com:47088 | testDB | Sleep | 10 | | NULL |
| 795140 | testDB | example.test.com:47074 | testDB | Sleep | 22 | | NULL |
| 795111 | testDB | example.test.com:47052 | testDB | Sleep | 27 | | NULL |
| 795083 | testDB | example.test.com:47030 | testDB | Sleep | 36 | | NULL |
| 795078 | testDB | example.test.com:46994 | testDB | Sleep | 42 | | NULL |
| 794723 | testDB | example.test.com:46782 | testDB | Sleep | 59 | | NULL |
| 794718 | testDB | example.test.com:46776 | testDB | Sleep | 139 | | NULL |
+--------+--------+------------------------+--------+----------------+------+-------+------+
10 rows in set (0.00 sec)
const CONFIG = {
queueLimit: 0
}
pool = mysql.createPool(CONFIG);
function _query(query, params, callback) {
pool.getConnection(function (err, connection) {
if (err) {
connection.release();
callback(err, null);
throw err;
}
connection.query(query, params, function (err, rows) {
connection.release();
if (!err) {
callback(null, rows);
}
else {
callback(err);
}
});
connection.on('error', function (err) {
connection.release();
callback(err, null);
throw err;
});
});
};
return {
query: _query
};
})
--
You received this message because you are subscribed to the Google Groups "node-mysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-mysql+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/node-mysql/491017db-a449-4395-92e9-13109bf63545%40googlegroups.com.