How to use idb-connector - 2 common examples

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);
    }
  }
github IBM / nodejs-idb-pconnector / lib / statement.js View on Github external
constructor(connection) {
    if (!connection) {
      // eslint-disable-next-line no-param-reassign
      connection = createConnection();
    }
    this.dbc = connection.dbconn;
    // eslint-disable-next-line new-cap
    this.stmt = new dbstmt(this.dbc);
  }

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