0.0.2 • Published 8 years ago

health-check-mysql v0.0.2

Weekly downloads
94
License
MIT
Repository
github
Last release
8 years ago

Health Check Mssql

CI

Circle CI

Install

$ npm install health-check-mysql

Usage

var healthCheckMssql = require('health-check-mysql');

healthCheckMssql.do([
  {
    server: 'validServer',
    user: 'validUser',
    password: 'validPassword'
  },
  {
      server: 'invalidServer',
      user: 'invalidUser',
      password: 'invalidPassword'
    }])
  .then(function(result) {
    console.log(result);
    /* 
    { health: false,
      success: 1,
      error: 1,
      details: 
       [ { name: 'validServer',
                    health: true,
                    message: '' }, 
        { name: 'invalidServer',
           health: false,
           message: 'getaddrinfo ENOTFOUND invalidServer invalidServer:3306' } 
       ] 
    }
    */
  })
  .catch(function(error) {
    console.log(error);
  });