JSPM

seneca-sybase-store

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q32332F
  • License MIT

Sybase SQL Anywhere database layer for Seneca framework

Package Exports

  • seneca-sybase-store

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (seneca-sybase-store) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.