Skip to content

mattinsler/mysql-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql-builder

Easily create/configure a MySQL client

Installation

npm install --save mysql mysql-builder

Usage

var mysql = require('mysql');
var builder = require('mysql-builder')(mysql);

// create a client from a URL
var client = builder('mysql://localhost:3306/mydb');
var client = builder('mysql://foo:bar@localhost:3306/mydb');

// create a pool from a URL
var pool = builder.pool('mysql://localhost:3306/mydb');
var pool = builder.pool('mysql://localhost:3306/mydb', {connectionLimit: 10});

License

Copyright (c) 2015 Matt Insler
Licensed under the MIT license.

About

Easily create/configure a MySQL client

Resources

License

Stars

Watchers

Forks

Packages

No packages published