1.0.4 • Published 8 years ago

mysql-poolastic v1.0.4

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

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)
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago