w1nk / node-odbc

unixODBC bindings for node
MIT License
90 stars 101 forks source link

NAME

node-odbc - An asynchronous Node interface to unixodbc and its supported drivers

SYNOPSIS

var util = require('util');
var odbc = require("odbc");

var db = new odbc.Database();
db.open("DRIVER={FreeTDS};SERVER=host;UID=user;PWD=password;DATABASE=dbname", function(err)
{
    db.query("select * from table", function(err, rows, moreResultSets)
    {
        util.debug(util.inspect(rows));
        db.close(function(){});
    });
});

DESCRIPTION

unixODBC binding to node. Needs a properly configured odbc(inst).ini. Tested locally using the FreeTDS and Postgres drivers.

INSTALLATION

git

git clone git://github.com/w1nk/node-odbc.git
cd node-odbc
node-waf configure build

npm

npm install odbc

TIPS

Example

"DRIVER={FreeTDS};SERVER=host;UID=user;PWD=password;DATABASE=dbname;TDS_Version=7.0"

BUGS

None known, but there might be one ;).

COMPLETE

TODO

ACKNOWLEDGEMENTS

AUTHORS

Lee Smith (notwink@gmail.com)

Dan VerWeire (dverweire@gmail.com)