user1549605
user1549605

Reputation: 343

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?

Upvotes: 6

Views: 7952

Answers (4)

vittorio88
vittorio88

Reputation: 68

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

Upvotes: 3

Guest
Guest

Reputation: 19

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

https://www.npmjs.org/package/sqlanywhere

Upvotes: 1

Pero P.
Pero P.

Reputation: 26992

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.

Upvotes: 5

moritz
moritz

Reputation: 5224

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.

Upvotes: 0

Related Questions