mysql-poolastic
v1.0.4
Published
This module automatically creates a mysql pool
Downloads
7
Readme
how to use with express
"use strict"
var express = require('express')
var mysqlPoolastic = require('mysql-poolastic');
var app = new express()
mysqlPoolastic.config({
connectionLimit: 100, //important
host: 'localhost',
user: 'root',
password: '',
database: 'address_book',
debug: false
})
// for querying:
app.get("/", function(req, res) {
// print out a list of users
mysqlPoolastic.query("SELECT * FROM users", req, res)
})
app.listen(8080)