INNER CODE UNIT · JavaScript

main

qpoint-io/qtap · apps/mysql/node/app.js:14

async function main() {
  const config = {
    host,
    port,
    user,
    password,
    database,
  };

  if (tlsEnabled) {
    console.log('[Node] TLS enabled');
    config.ssl = {};
    if (caCertPath && fs.existsSync(caCertPath)) {
      config.ssl.ca = fs.readFileSync(caCertPath);
    }
  } else {
    console.log('[Node] TLS disabled');
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…