Sails Sqlserver Adapter
A Waterline adapter for working with the Microsoft SqlServer database.
This version works with Sails 1.x. All Waterline Adapter Interfaces and methods are implemented based on the postgres implementation.
This is largely a port of sails-postgresql
$ npm install sails-sqlserver-adapter
An example configuration below.
moduleexportsdatastores =default:adapter: 'sails-sqlserver-adapter'host: processenvDB_HOSTport: processenvDB_PORTuser: processenvDB_USERpassword: processenvDB_PASSdatabase: processenvDB_NAMEschemaName: 'dbo' //note: schema specified in model takes precedencerequestTimeout: 15000options:encrypt: falseappName: 'myapp'pool:max: 25min: 5idleTimeoutMillis: 30000;
The repo is configured to run all the tests in Docker containers. The composition uses two container
- sql server 2017 container spec published by Microsoft
- A container for testing the package based on official Node 10 release
To run the tests in docker env
$ docker-compose up
The github repo is configure to run the tests in Travis-CI on code push. The status of the build can be seen at the top of the repo
If you have further questions or are having trouble, click here.