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?
4 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.

- 25,813
- 9
- 61
- 85
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

- 68
- 6
I know it has been a while, but if you are still looking, try this:

- 19
- 1
-
This is a "link-only answer". As that page might go away, please add at least a summary to your answer. – Beryllium Mar 23 '14 at 17:55
-
1Your link is for Sybase SQL Anywhere database where as the requirement is for Sybase ASE database – user1549605 Mar 03 '15 at 20:16
node.js comes with no DB support at all.
DB connectors are out of the scope of the node.js distribution. But the cummunity fills the gap here e.g. for mysql there is node-mysql.
Problem here is that you want to use a DB without a big (open source) community, so, after some googeling, there is no node.js connector.
If you want to create a connector for sybase ASE you might have a look at node-mysql to get startet. But this is nothing you do in one weekend.

- 5,094
- 1
- 26
- 33