How to use the idb-connector.dbconn function in idb-connector

To help you get started, we’ve selected a few idb-connector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github IBM / nodejs-idb-pconnector / lib / connection.js View on Github external
constructor(db = { url: '', username: '', password: '' }) {
    const { url, username, password } = db;
    const isLocal = url === '*LOCAL';

    // eslint-disable-next-line new-cap
    this.dbconn = new dbconn();

    if (isLocal && !username && !password) {
      this.connect();
    } else if (url && username && password) {
      this.connect(url, username, password);
    }
  }

idb-connector

A Node.js DB2 driver for IBM i

MIT
Latest version published 3 months ago

Package Health Score

67 / 100
Full package analysis

Popular idb-connector functions