3.0.4 • Published 5 years ago

modelar-mssql-adapter v3.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Modelar-Mssql-Adapter

This is an adapter for Modelar to connect MicroSoft SQL Server database.

Prerequisites

  • NodeJS version higher than 4.0.0.

Install

npm install modelar-mssql-adapter --save

How To Use

const { DB } = require("modelar");
const { MssqlAdapter } = require("modelar-mssql-adapter");

DB.setAdapter("mssql", MssqlAdapter);

// then use type 'mssql' in db.config
DB.init({
    type: "mssql",
    database: "modelar",
    host: "127.0.0.1",
    port: 1433,
    user: "sa",
    password: "******"
});

A Tip

Since node-mssql doesn't provide methods to manually close and release a pooled connection (it handles internally), calling db.close() and db.release() would not work as expected, but that doesn't matter, this adapter still works fine with Modelar in most cases, you just need to terminate all connections by calling DB.close() when you're going to exit your program.

3.0.4

5 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago