I\'m writing a Node app that accepts TCP connections. I have a few separate Node modules (utilizing the exports functionality). Each needs a database connection to handle so
imo best approach is to initialize connections pool and use it in modules passing as parameter.
mysql-pool is quite generic and easily adaptable to any db client