how to connect a sql database to javascript file code example
Example: js access sql database on server
// Use JSMYSQLDB to read tables from a database on the server (not write)
// -> https://github.com/JackChilds/jsmysqldb
// For full disclosure, I built the tool.