INNER CODE UNIT · JavaScript
init
JarvusInnovations/lapidus · src/mysql-worker.js:6
function init(config) {
'use strict';
console.log(`MySQL: Connecting to ${config.database} on ${config.hostname} as ${config.username} [#${config.serverId}]`);
}
process.on('message', function (msg) {
'use strict';
msg = JSON.parse(msg);
if (!config) {
config = msg;
init(config);
// TODO: zongji throws errors from async functions, we can't do much with error handling until that's fixed
// see: index.js:102
mysql = new MySql(config);