UNPKG

restaurantt

Version:

This package contains a backend of what would be the logic of a restaurant software

24 lines (20 loc) 618 B
const sql = require("mssql"); class Conection { static conection=async () => { let sqlconfig = { user: 'rwkama61_SQLLogin_1', password:'bfq84g7nbx', database: 'restauranttt', server: 'restauranttt.mssql.somee.com', options: { trustedConnection: false, enableArithAbort: true, encrypt: false } } const pool = await sql.connect(sqlconfig); return pool } } module.exports = { Conection };