{"name":"idb-connector","version":"1.2.14","description":"A Node.js DB2 driver for IBM i","homepage":"https://github.com/IBM/nodejs-idb-connector","author":{"name":"IBM"},"license":"MIT","keywords":["DB2","IBMi","iSeries","OS400"],"repository":{"type":"git","url":"git+ssh://git@github.com/IBM/nodejs-idb-connector.git"},"bugs":{"url":"https://github.com/IBM/nodejs-idb-connector/issues"},"contributors":[{"name":"Xu Meng","email":"dmabupt@gmail.com","url":"https://github.com/dmabupt"},{"name":"Abdirahim Musse","email":"abdirahim.musse@ibm.com","url":"https://github.com/abmusse"},{"name":"Aaron Bartell","email":"aaronbartell@gmail.com","url":"https://github.com/aaronbartell"},{"name":"Kevin Adler","email":"kadler@us.ibm.com","url":"https://github.com/kadler"},{"name":"Mark Irish","email":"mirish@ibm.com","url":"https://github.com/markdirish"}],"os":["aix"],"gypfile":true,"main":"lib/db2a.js","directories":{"lib":"lib","test":"test"},"scripts":{"test":"ln -sf ./build-tmp-napi-v3 ./build && ./node_modules/mocha/bin/mocha --timeout 5s","install":"node-pre-gyp install --fallback-to-build"},"dependencies":{"@mapbox/node-pre-gyp":"*","node-addon-api":"^3.1.0"},"devDependencies":{"bindings":"^1.5.0","chai":"^4.3.4","eslint":"^7.25.0","eslint-config-airbnb-base":"^14.2.1","eslint-plugin-import":"^2.22.1","mocha":"^8.3.2"},"binary":{"module_name":"db2ia","module_path":"./lib/binding/{configuration}/napi{napi_build_version}-ibmi-{arch}/","remote_path":"./{version}/","package_name":"{module_name}-v{version}-napi{napi_build_version}-ibmi-{arch}.tar.gz","host":"https://github.com/IBM/nodejs-idb-connector/releases/download","napi_versions":[3]},"bundleDependencies":["@mapbox/node-pre-gyp"],"gitHead":"a42c4e648aedde7ae6d18d87300b33d14c50e298","_id":"idb-connector@1.2.14","_nodeVersion":"12.22.7","_npmVersion":"8.3.0","dist":{"integrity":"sha512-hDa86Na4K5nCIrmvxZs1Sew2gZlSgwqWMg+KVIvJ9dAzalFZ7NDFm2xeiOkPgQ77ORy47UATHjLZxifEfpsHjw==","shasum":"96e6dec1af3f33010dd62cbd9b8ba0ec518dfcab","tarball":"http://registry-npm.ywwl.com/idb-connector/download/idb-connector-1.2.14.tgz","fileCount":481,"unpackedSize":14923060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwBzECRA9TVsSAnZWagAA92wP/A7qB0vu8nLbw0UsXIEn\nR+GIaX9BJ2BcXBBxF2FRe7/5bU9TfqfyvgAcE/obPb1qdYGJTYmTA2FGJ76V\n5bRI5sZaWY0cRbpYxFlnQNnrlWslVVhMnHy8I/TCTNgXEBlPxr/Am91g8Mtq\nqjtiWqO0hoIP0mhvGwfqWXrXUL1BmrcTGOAHC2u39v/tLsxGYqzTCvy8WAnr\nu6Qh1JLUaQ3OXSe7z5vK60vQBISjSCxpEMuNypFOaOK7D6nfR1Ewo29zXokB\nPDY7tqYN2E5RnOQlI0FILhPfXtxf/lRQbjmQER8aSFOPuIgdi/IYMKFrxyZi\nOHDw7uulDIK0NwLc3njXy+4O0bAHsUlo+O8uDP565YfKZ4neW/XD8dHViOPf\nmtAP1uqN8R2N+p0Zm9ga8BMTWOimkSr4QNsDz9ZUPSdtoT61uZoCvuQKGOdN\nzZfnN/QovRS/XRidyYibhAA80ZqVckclLy+ZAse9MwUGak9az3B/bXBS9tz0\njqVAdessT9EL91tKnxcM7WjS1uxwABU4ZCmKtyP54UxLh7b5JVRidus3fHjL\n86DMkjwZg44mWVAOXNKIo0s7bv8k2q+cKS1/sjtEGIjevp81duQBl9xicv+R\nk4De/nhoG3c0ZXct14QdUG61nc9ozQgcWBfcNVbye+v5D1sQ207bvwOBW4rz\nSt+R\r\n=MaYC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJCaod3BJ7DptS8S1EkbzWX2obmCLE1aFjSmker5kFbwIga+oGNHxrjtQYi4ZJ9Q49eVMFMiiogYKz3ARhviQG96w="}],"size":3031174,"noattachment":false,"key":"/idb-connector/-/idb-connector-1.2.14.tgz"},"_npmUser":{"name":"dmabupt","email":"dmabupt@gmail.com"},"maintainers":[{"name":"theprez","email":"jgorzinski@gmail.com"},{"name":"dmabupt","email":"dmabupt@gmail.com"},{"name":"abmusse","email":"mussebiz@gmail.com"},{"name":"markdirish","email":"mirish@ibm.com"},{"name":"aaronbartell","email":"aaronbartell@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/idb-connector_1.2.14_1639980228495_0.10126600725094903"},"_hasShrinkwrap":false,"readme":"# Node.js iDB Connector for IBM i\n\nThe Node.js iDB Connector is an IBM i Node.js Db2 driver open source project from IBM\n\n[![NPM](https://nodei.co/npm/idb-connector.png?downloads=true&downloadRank=true)](https://nodei.co/npm/idb-connector/)\n\n[![Node-API v3 Badge](https://github.com/nodejs/abi-stable-node/blob/doc/assets/Node-API%20v3%20Badge.svg)](https://nodejs.org/dist/latest/docs/api/n-api.html#n_api_node_api_version_matrix)\n\n## Installation\n\n```sh\n    npm i idb-connector\n```\n\n**NOTE** This package only installs on IBM i systems.\n\nThen you can _require_ in your code, as shown below.\n\n```js\n    const db = require('idb-connector');\n```\n\n## Quick Example\n\n### Example 1: Fetching data using the exec() API\n\n```js\n    const {dbconn, dbstmt} = require('idb-connector');\n\n    const sSql = 'SELECT STATE FROM QIWS.QCUSTCDT';\n    const connection = new dbconn();\n    connection.conn('*LOCAL');\n    const statement = new dbstmt(connection);\n\n    statement.exec(sSql, (x) => {\n      console.log(JSON.stringify(x));\n      statement.close();\n      connection.disconn();\n      connection.close();\n    });\n\n```\n\n### Example 2: Fetching data using the fetchAll() API\n\n```js\n\n    const {dbconn, dbstmt} = require('idb-connector');\n\n    const sSql = 'SELECT STATE FROM QIWS.QCUSTCDT';\n    const connection = new dbconn();\n    connection.conn('*LOCAL');\n    const statement = new dbstmt(connection);\n\n    statement.prepare(sSql, () => {\n      statement.execute(() => {\n        statement.fetchAll((x) => {\n          console.log(`Result is : ${JSON.stringify(x)}`);\n          statement.close();\n        });\n      });\n    });\n\n```\n\n### Example 3: Call stored procedures\n\n```js\n    const {dbconn, dbstmt} = require('idb-connector');\n\n    const sql = 'CALL QXMLSERV.iPLUG512K(?,?,?,?)';\n    const connection = new dbconn();\n    connection.conn('*LOCAL');\n    const statement = new dbstmt(connection);\n\n    const ipc = '*NA';\n    const ctl = '*here';\n    const xmlIn = `<xmlservice><sh>system 'wrksbs'</sh></xmlservice>`;\n    const xmlOut = '';\n\n    statement.prepare(sql, () => {\n      statement.bindParameters([ipc, ctl, xmlIn, xmlOut], () => {\n        statement.execute((out) => {\n          for (let i = 0; i < out.length; i += 1) {\n            console.log(out[i]);\n          }\n          statement.close();\n          connection.disconn();\n          connection.close();\n        });\n      });\n    });\n\n```\n\n## API Reference\n\n[Db2 for i Access APIs](https://github.com/IBM/nodejs-idb-connector/blob/master/docs/README.md)\n\n## Change Log\n\nView [`CHANGELOG.md`](https://github.com/IBM/nodejs-idb-connector/blob/master/CHANGELOG.md) file.\n\n## Build\n\nNote that building isn't necessary for end-users and is more for developers looking to compile the native Node.js extensions (C code).\n\n```sh\n    git clone git@github.com:IBM/nodejs-idb-connector.git\n    cd nodejs-idb-connector\n    npm install --build-from-source\n```\n### Build Dependencies\nNote: sqlcli header files, GCC, and Python are required to compile the code.\n\n```sh\n    yum install sqlcli-devel\n    yum group install 'Development tools' \n    yum install python2\n```\n\n## License\n\n[`MIT`](https://github.com/IBM/nodejs-idb-connector/blob/master/LICENSE)\n\n## **Contributing**\n\nPlease read the [contribution guidelines](https://github.com/IBM/nodejs-idb-connector/blob/master/CONTRIBUTING.md).\n","publish_time":1639980228838,"_cnpm_publish_time":1639980228838,"dist-tags":{"beta":"1.2.19-beta.0","latest":"1.3.1","rc":"1.3.0-rc.4"}}