@kmhgmbh/kmh-db-connector
v4.0.4
Published
Utility package for MSSQL database connections
Downloads
313
Keywords
Readme
KM/H Database Connector (kmh-db-connector)
Simple abstraction layer for mssql
.
Installation
npm install kmh-db-connector
Usage
import DbConnector from 'kmh-db-connector';
const conf:mssql.config = {
user: 'username',
password: 'password',
server: 'host',
database: 'database name',
port: 1433,
};
const dbConnector = new DbConnector(config,language = 'deutsch');
await dbConnector.executeProcedureSafe('Person.getUser', { FirstName: firstName, LastName: lastName, ModifiedDate: (new Date()) }, 'AdventureWorks2017');