0.0.3 • Published 9 years ago

seneca-sybase-store v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

seneca-sybase-store

Sybase database layer for Seneca framework

Current Version: 0.0.3

Tested on: Node 0.10.32, Seneca 0.5.21

Use

For using this plugin, please see how the Seneca Data Entities feature works (http://senecajs.org/data-entities.html).

Building

This plugin is base on the node-odbc module (https://github.com/wankdanker/node-odbc), which is communicates with the native ODBC layer, and thus requires native compilation. Native compilation is managed by node-gyp. (https://github.com/TooTallNate/node-gyp). Please see that project for additional prerequisites including Python 2.7, and C/C++ tool chain. See these module requirements for the correct build and further requirements.

Tests

Prerequisite:

isql -S SERVERNAME -U sa -i schema.sql
  • Setup the ODBC Connection String in dbconfig.example.js, for instance if you use FreeTDS (http://www.freetds.org/), the connection String for the test has the form:
DRIVER={FreeTDS};SERVERNAME=XXXX;DATABASE=senecatest;UID=senecatest;PWD=senecatest;

Note that in this case the SERVERNAME is the ODBC Server Name, not the ASE Server Name.

  • Execute the tests using npm test as usual

Notes

See here for the full ODBC error codes reference: http://msdn.microsoft.com/en-us/library/ms714687.aspx

Acknowledgements

This project was sponsored by nearForm.