Skip to content

simple-orm/mysql-pool-connection-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
});

About

A simple promise wrapper around managing mysql pooled connections

Resources

License

Stars

Watchers

Forks

Packages

No packages published