
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
idb-connector
Advanced tools
The Node.js iDB Connector is a Node.js DB2 driver open source project from IBM.
git clone git@bitbucket.org:litmis/nodejs-idb-connector.git
cd nodejs-idb-connector
npm install --build-from-source
npm install -g
Note: Gcc and python are required to compile the code.
npm -g i idb-connector
Then you can require('idb-connector') in your code.
If you encounter below error messega:
Error: Cannot find module 'idb-connector'
you need to add the idb-connector path:
export NODE_PATH=/QOpenSys/pkgs/lib/nodejs8/lib/node_modules
var db = require('idb-connector');
var sSql = 'SELECT STATE FROM QIWS.QCUSTCDT';
var dbconn = new db.dbconn();
dbconn.conn("*LOCAL");
var stmt = new db.dbstmt(dbconn);
stmt.exec(sSql, (x) => {
console.log("%s", JSON.stringify(x));
stmt.close();
dbconn.disconn();
dbconn.close();
});
var db = require('idb-connector');
var sSql = 'SELECT STATE FROM QIWS.QCUSTCDT';
var dbconn = new db.dbconn();
dbconn.conn("*LOCAL");
var stmt = new db.dbstmt(dbconn);
stmt.prepare(sSql, () => {
stmt.executeSync(() => {
stmt.fetchAll((x) => {
console.log("%s", JSON.stringify(x));
stmt.close();
});
});
});
var db = require('idb-connector');
var sql = "call QXMLSERV.iPLUG512K(?,?,?,?)";
var dbconn = new db.dbconn();
dbconn.conn("*LOCAL");
var stmt = new db.dbstmt(dbconn);
var ipc = "*NA";
var ctl = "*here";
var xmlIn = "<xmlservice><sh>system 'wrksbs'</sh></xmlservice>";
var xmlOut;
stmt.prepare(sql, () => {
stmt.bindParam([
[ipc, db.SQL_PARAM_INPUT, 1], // 1 -- null-terminated string
[ctl, db.SQL_PARAM_INPUT, 1],
[xmlIn, db.SQL_PARAM_INPUT, 0], // 0 -- CLOB string
[xmlOut, db.SQL_PARAM_OUTPUT, 0],
], function(){
stmt.execute((out) => { // 'out' is an array of output params
for(var i = 0; i < out.length; i++)
console.log(out[i]);
stmt.close();
dbconn.disconn();
dbconn.close();
});
});
});
MIT. View LICENSE
file.
1.1.0
FAQs
A Node.js DB2 driver for IBM i
The npm package idb-connector receives a total of 91 weekly downloads. As such, idb-connector popularity was classified as not popular.
We found that idb-connector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.