Sunday, February 5, 2012

MySQL and Node.js Example

Node.js works as advertised but there seem to be few examples of accessing the fields in the query results. I created a simple node program that responds to the HTTP request with the results of a query of a simple MySQL database that I blogged about before.

The code is here: https://gist.github.com/1749455