Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

node.js sybase driver

I am developing an app using node.js express framework and would need to connect to sybase ASE database. I did enough search and couldn't find the sybase driver for node.js. doesn't node.js support sybase or should I use something like a generic driver?

like image 310
user1549605 Avatar asked Jul 24 '12 18:07

user1549605


2 Answers

An exhaustive list of database drivers is on the node.js wiki here:

https://github.com/joyent/node/wiki/Modules#wiki-database

But no Sybase so that leaves using an ODBC driver which, if on *nix, then you have the option of:

https://github.com/w1nk/node-odbc

Alternatively, Sybase ASE has it's own web services engine which exposes SQL and stored procedures through a SOAP API. Your best option may be to just roll your own SOAP client in node against that API, perhaps using node-soap.

like image 134
Pero P. Avatar answered Sep 22 '22 11:09

Pero P.


As of 2015, a non-odbc implementation based on Jconnect is available. It requires Java.

You can install it with

npm install sybase

More info: https://www.npmjs.com/package/sybase

like image 37
vittorio88 Avatar answered Sep 22 '22 11:09

vittorio88