How can I use a single mssql connection pool across several routes in an Express 4 web application?

It’s been 3 years since I asked and answered the question. Since then a few things have changed. Here’s the new solution based on ES6, mssql 4 and Express 4 that I would suggest today. Two key elements are at play here. Modules are cached after the first time they are loaded. This means that … Read more