
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@clearroad/api-storage-mssql
Advanced tools
Note: 5 databases will be created to store the data, all prefixed with the database
value (see below).
Make sure you use credentials that have the rights to create databases.
npm install @clearroad/api-storage-mssql
Using with es6 / TypeScript
import { ClearRoad } from '@clearroad/api';
import storage from '@clearroad/api-storage-mssql';
Using with require
const ClearRoad = require('@clearroad/api').ClearRoad;
const storage = require('@clearroad/api-storage-mssql').default;
ClearRoad
instance:const options = {
localStorage: {
type: storage,
server: 'host.com',
user: 'user',
password: 'passowrd',
database: 'MyDatabase'
},
useQueryStorage: true // we cannot query directly with the storage, so wrap in a query storage
};
const cr = new ClearRoad('url', 'accessToken', options);
Property | Type | Description | Required |
---|---|---|---|
localStorage.type | string | Connector type. Use mssql | Yes |
localStorage.server | string | Database host | Yes |
localStorage.user | string | Database user | Yes |
localStorage.password | string | Database password | Yes |
localStorage.database | string | Database name | Yes |
localStorage.documentsTableName | string | Database table name to storage all documents. Default is documents | No |
localStorage.attachmentsTableName | string | Database table name to storage all attachments. Default is attachments | No |
localStorage.timestamps | boolean | Add createdAt and updateAt fields on each row. Default is true | No |
useQueryStorage | boolean | Storage needs to be wrapped in a QueryStorage . Use true | Yes |
0.1.0 (2019-01-23)
<a name="0.1.0-alpha.9"></a>
FAQs
ClearRoad API mssql Connector
The npm package @clearroad/api-storage-mssql receives a total of 6 weekly downloads. As such, @clearroad/api-storage-mssql popularity was classified as not popular.
We found that @clearroad/api-storage-mssql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.