{"id":18555081,"url":"https://github.com/mistergf/sails-mssqlserver","last_synced_at":"2025-04-09T23:31:56.978Z","repository":{"id":71136476,"uuid":"55798326","full_name":"misterGF/sails-mssqlserver","owner":"misterGF","description":"Microsoft SQL Server Adapter for sails.js","archived":false,"fork":false,"pushed_at":"2019-01-24T14:38:40.000Z","size":134,"stargazers_count":10,"open_issues_count":3,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T13:43:59.423Z","etag":null,"topics":["ms-sql","mssql","orm","sails","sails-mssqlserver","windows"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/misterGF.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-08T17:44:59.000Z","updated_at":"2023-08-22T19:27:44.000Z","dependencies_parsed_at":"2023-06-10T05:00:14.842Z","dependency_job_id":null,"html_url":"https://github.com/misterGF/sails-mssqlserver","commit_stats":{"total_commits":124,"total_committers":20,"mean_commits":6.2,"dds":0.532258064516129,"last_synced_commit":"66ec80366f9e477c6af0c55174eb4892da971e6e"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misterGF%2Fsails-mssqlserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misterGF%2Fsails-mssqlserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misterGF%2Fsails-mssqlserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/misterGF%2Fsails-mssqlserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/misterGF","download_url":"https://codeload.github.com/misterGF/sails-mssqlserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129888,"owners_count":21052655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ms-sql","mssql","orm","sails","sails-mssqlserver","windows"],"created_at":"2024-11-06T21:25:04.875Z","updated_at":"2025-04-09T23:31:55.521Z","avatar_url":"https://github.com/misterGF.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![sails logo](http://sailsjs.org/images/bkgd_squiddy.png)\n\n# Sails-MSsqlserver\n[![NPM version][npm-image]][npm-url]\n[![Build status][ci-image]][ci-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n\n\n\nMicrosoft SQL Server adapter for [sails.js](http://sailsjs.org/). Tested on SQL Server 2012 and 2014,\nbut should support any SQL Server 2005 and newer. CI tests are run against SQL\nServer Express. Originally published by [c*nect](http://www.cnectdata.com/).\n\nThe development and acceptance of pull request have stalled on the original project. Therefore I am publishing this project with some enhancements.\n\n## Getting Started\n### 1. Install\n```sh\n$ npm install sails-mssqlserver --save\n```\n\n### 2. Configure\n\n#### `config/models.js`\n```js\n{\n  connection: 'sqlserver'\n}\n```\n\n#### `config/connections.js`\n```js\n{\n  sqlserver: {\n    adapter: 'sails-mssqlserver',\n    user: 'sa',\n    password: 'secureP@ssword',\n    host: 'abc123.database.windows.net', // azure database\n    database: 'mydb',\n    options: {\n      encrypt: true   // use this for Azure databases\n    }\n  }\n}\n```\n\n## Query Examples\n\n### Select with certain columns\n``` javascript\nPlugins.find({\n  select: ['name','author'] // Optional\n})\n.where({\n  framework: 'sails.js'\n})\n.then(function(results){\n  if (results) {\n    results.forEach(function(plugin)){\n      console.log(plugin)\n    }      \n  } else {\n    console.log('No plugins found')\n }\n})\n```\n\nFor further examples check out Sail's [Waterline ORM page](http://sailsjs.org/documentation/concepts/models-and-orm/query-language)\n\n## License\nMIT\n\n## Credits\n\nThis project was originally forked from [cnect/sails-sqlserver](https://github.com/cnect/sails-sqlserver) in 2016.  That repo was itself forked from [swelham/sails-mssql](https://github.com/swelham/sails-mssql) in early 2015. The code in both of those repositories is also available under the MIT license.\n\n\n[npm-image]: https://img.shields.io/npm/v/sails-mssqlserver.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/sails-mssqlserver\n\n\n[ci-image]: https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva/branch/master\n[ci-url]: https://ci.appveyor.com/project/misterGF/sails-mssqlserver/branch/master\n\n[daviddm-image]: http://img.shields.io/david/misterGF/sails-mssqlserver.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/misterGF/sails-mssqlserver\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmistergf%2Fsails-mssqlserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmistergf%2Fsails-mssqlserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmistergf%2Fsails-mssqlserver/lists"}