Skip to content

Waterline Adapter to use between SailsV1 and a Sql Server DB

Notifications You must be signed in to change notification settings

krewx/mssql-sailsv1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mssql-sailsv1

Fork from the Official Microsoft SQL Server adapter, by c*nect, for sails.js. Tested on SQL Server 2017, but should support any SQL Server 2005 and newer. This is an alpha version, there are several methods that needs to be implemented and i will keep implementing them over the time.

1. Install

$ npm install mssql-sailsv1 --save

2. Configure

config/datastore.js

{
  adapter: 'mssql-sailsv1',
  url: 'mssql://usr:pwd@host:port/DB?encrypt=false'
}
{
  adapter: 'mssql-sailsv1',
  user: 'usr',
  password: 'pwd',
  host: 'host',
  port: 'port', 
  database: 'DB',
  options: {
    encrypt: true   // use this for Azure databases
  }
}

For more options to connect please check mssql documentation.

3. Supported methods

.count() .create() .createEach() .destroy() .find() .populate() .update()

License

MIT

About

Waterline Adapter to use between SailsV1 and a Sql Server DB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published