Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cihatksm/easy-mssql
This is a simple mssql module for node.js
https://github.com/cihatksm/easy-mssql
cihatksm easy-mssql easymssql
Last synced: 25 days ago
JSON representation
This is a simple mssql module for node.js
- Host: GitHub
- URL: https://github.com/cihatksm/easy-mssql
- Owner: CihatKsm
- License: mit
- Created: 2024-09-12T17:53:09.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T18:43:27.000Z (2 months ago)
- Last Synced: 2024-10-15T16:21:52.744Z (about 1 month ago)
- Topics: cihatksm, easy-mssql, easymssql
- Language: JavaScript
- Homepage: https://npm.cihatksm.com/easy-mssql
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
#### Module Download
```bash
npm install easy-mssql
```#### Simple Usage
```js
const config = require('./config');const { Connect, Table, Request } = require('easy-mssql');
const date = () => new Date();
console.log(date(), 'System opened!');Connect(config.sql);
setTimeout(async () => {
// const user = await Table('company').findOne({ id: 1 });
// console.log(user);// const info = await Table('company').functions.info();
// console.log(info);// const procedure = await Request.procedure('GetCompany', { companyId: 1 });
// console.log(procedure);// const query = await Request.query('SELECT * FROM company', true);
// console.log(query);// const simple_scheme = require('./simple_scheme');
// const createdTable = await Table('company').functions.create(simple_scheme.dataTypes);
// console.log(createdTable);// const removedTable = await Table('company').functions.remove();
// console.log(removedTable);
}, 1000);```
[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
#### Feedback
**E-mail:** [email protected]