
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
runsv-mysql-pool
Advanced tools
runsv service wrapper around the great mysql module.
If you have already installed mysql
$ npm install runsv-mysql-pool
Otherwise
$ npm install mysql runsv-mysql-pool
mysql is a peer dependency of this module
Create a MySQL connection pool
const runsv = require('runsv')();
// Pool options. Same as https://www.npmjs.com/package/mysql#pool-options
const poolOptions = { /*...*/}
const createMySQLPoolService = require('runsv-mysql-pool');
const poolClientName = 'myPool';
const poolService = createMySQLPoolService(poolOptions, poolClientName);
runsv.addService(mysql);
runsv.start(function(err){
const {myPool} = runsv.getClients();
// myPool is the same object you will get with mysql.createPool(...)
myPool.query('SELECT ...', function (err, rows) {
/* ... */
});
});
/* ... other application logic */
createMySQLPoolService(options, name='mysql') this function will create the service wrapper.
#options Same as the mysql ones#name A String. Default is "mysql".FAQs
runsv service wrapper around mysql module
We found that runsv-mysql-pool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.