mysql-pool-connection-manager

0.5.0 • Public • Published

MySQL Pool Connection Manager

This is a simple wrapper for managing mysql pooled connection using promises (and therefore generators). The module exports a function that you pass the pool configuration too.

Installation

npm instal mysql-pool-connection-manager

Usage

var configuration = require('../configurations/data.json');
 
//you can pass anything that you would pass to mysql.createPool()
module.exports = require('mysql-pool-connection-manager')({
  host: configuration.host,
  user: configuration.username,
  password: configuration.password,
  port: configuration.port
});

Readme

Keywords

Package Sidebar

Install

npm i mysql-pool-connection-manager

Weekly Downloads

1

Version

0.5.0

License

MIT

Last publish

Collaborators

  • ryanzec